class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCountedResourceTexture TextureLayered
Base class for texture types which contain the data of multiple Images. Each image is of the same size and format.

Base class for ImageTextureLayered and CompressedTextureLayered. Cannot be used directly, but contains all the functions necessary for accessing the derived resource types. See also Texture3D.

Data is set on a per-layer basis. For Texture2DArrays, the layer specifies the array layer.

All images need to have the same width, height and number of mipmap levels.

A TextureLayered can be loaded with ResourceLoader.load().

Internally, Godot maps these files to their respective counterparts in the target rendering driver (Vulkan, OpenGL3).

Enum LayeredType<>():Enum

LAYERED_TYPE_2D_ARRAY = 0

Texture is a generic Texture2DArray.


LAYERED_TYPE_CUBEMAP = 1

Texture is a Cubemap, with each side in its own layer (6 in total).


LAYERED_TYPE_CUBEMAP_ARRAY = 2

Texture is a CubemapArray, with each cubemap being made of 6 layers.

Format _get_format<>():Format

Called when the TextureLayered's format is queried.

int _get_height<>():int

Called when the TextureLayered's height is queried.

Image _get_layer_data<>( int layer_index=, layer_index:int=, ):Image

Called when the data for a layer in the TextureLayered is queried.

int _get_layered_type<>():int

Called when the layers' type in the TextureLayered is queried.

int _get_layers<>():int

Called when the number of layers in the TextureLayered is queried.

int _get_width<>():int

Called when the TextureLayered's width queried.

bool _has_mipmaps<>():bool

Called when the presence of mipmaps in the TextureLayered is queried.

Format get_format<>():Format

Returns the current format being used by this texture. See Format for details.

int get_height<>():int

Returns the height of the texture in pixels. Height is typically represented by the Y axis.

Image get_layer_data<>( int layer=, layer:int=, ):Image

Returns an Image resource with the data from specified layer.

LayeredType get_layered_type<>():LayeredType

Returns the TextureLayered's type. The type determines how the data is accessed, with cubemaps having special types.

int get_layers<>():int

Returns the number of referenced Images.

int get_width<>():int

Returns the width of the texture in pixels. Width is typically represented by the X axis.

bool has_mipmaps<>():bool

Returns true if the layers have generated mipmaps.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...