:github_url: hide .. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the TextureLayered.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_TextureLayered: TextureLayered ============== **Inherits:** :ref:`Texture` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Inherited By:** :ref:`Cubemap`, :ref:`CubemapArray`, :ref:`Texture2DArray` Base class for 3D texture types. Description ----------- Base class for :ref:`Texture2DArray`, :ref:`Cubemap` and :ref:`CubemapArray`. Cannot be used directly, but contains all the functions necessary for accessing the derived resource types. Data is set on a per-layer basis. For :ref:`Texture2DArray`\ s, the layer specifies the array layer. Methods ------- +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`create_from_images` **(** :ref:`Array` images **)** | +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Format` | :ref:`get_format` **(** **)** const | +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_height` **(** **)** const | +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Image` | :ref:`get_layer_data` **(** :ref:`int` layer **)** const | +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_layers` **(** **)** const | +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_width` **(** **)** const | +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`update_layer` **(** :ref:`Image` image, :ref:`int` layer **)** | +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+ Method Descriptions ------------------- .. _class_TextureLayered_method_create_from_images: - :ref:`Error` **create_from_images** **(** :ref:`Array` images **)** ---- .. _class_TextureLayered_method_get_format: - :ref:`Format` **get_format** **(** **)** const Returns the current format being used by this texture. See :ref:`Format` for details. ---- .. _class_TextureLayered_method_get_height: - :ref:`int` **get_height** **(** **)** const Returns the height of the texture. Height is typically represented by the Y-axis. ---- .. _class_TextureLayered_method_get_layer_data: - :ref:`Image` **get_layer_data** **(** :ref:`int` layer **)** const Returns an :ref:`Image` resource with the data from specified ``layer``. ---- .. _class_TextureLayered_method_get_layers: - :ref:`int` **get_layers** **(** **)** const ---- .. _class_TextureLayered_method_get_width: - :ref:`int` **get_width** **(** **)** const Returns the width of the texture. Width is typically represented by the X-axis. ---- .. _class_TextureLayered_method_update_layer: - void **update_layer** **(** :ref:`Image` image, :ref:`int` layer **)**