TextureLayered

Inherits: Resource < Reference < Object

Inherited By: Texture3D, TextureArray

Category: Core

Brief Description

Properties

Dictionary data {“depth”: 0,”flags”: 4,”format”: 37,”height”: 0,”layers”: [ ],”width”: 0}
int flags 4

Methods

void create ( int width, int height, int depth, Format format, int flags=4 )
int get_depth ( ) const
Format get_format ( ) const
int get_height ( ) const
Image get_layer_data ( int layer ) const
int get_width ( ) const
void set_data_partial ( Image image, int x_offset, int y_offset, int layer, int mipmap=0 )
void set_layer_data ( Image image, int layer )

Enumerations

enum Flags:

  • FLAG_MIPMAPS = 1
  • FLAG_REPEAT = 2
  • FLAG_FILTER = 4
  • FLAGS_DEFAULT = 4

Property Descriptions

Default {“depth”: 0,”flags”: 4,”format”: 37,”height”: 0,”layers”: [ ],”width”: 0}

Default 4
Setter set_flags(value)
Getter get_flags()

Method Descriptions


  • int get_depth ( ) const


  • int get_height ( ) const

  • Image get_layer_data ( int layer ) const

  • int get_width ( ) const

  • void set_data_partial ( Image image, int x_offset, int y_offset, int layer, int mipmap=0 )

  • void set_layer_data ( Image image, int layer )