mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 19:29:06 +00:00
103 lines
6.6 KiB
ReStructuredText
103 lines
6.6 KiB
ReStructuredText
.. 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/<name>/doc_classes.
|
|
|
|
.. _class_TextureLayered:
|
|
|
|
TextureLayered
|
|
==============
|
|
|
|
**Inherits:** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
|
|
|
|
**Inherited By:** :ref:`TextureArray<class_texturearray>`, :ref:`Texture3D<class_texture3d>`
|
|
|
|
**Category:** Core
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
|
|
|
|
Member Functions
|
|
----------------
|
|
|
|
+-----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`create<class_TextureLayered_create>` **(** :ref:`int<class_int>` width, :ref:`int<class_int>` height, :ref:`int<class_int>` depth, :ref:`Format<enum_image_format>` format, :ref:`int<class_int>` flags=4 **)** |
|
|
+-----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`get_depth<class_TextureLayered_get_depth>` **(** **)** const |
|
|
+-----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`Format<enum_image_format>` | :ref:`get_format<class_TextureLayered_get_format>` **(** **)** const |
|
|
+-----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`get_height<class_TextureLayered_get_height>` **(** **)** const |
|
|
+-----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`Image<class_image>` | :ref:`get_layer_data<class_TextureLayered_get_layer_data>` **(** :ref:`int<class_int>` layer **)** const |
|
|
+-----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`get_width<class_TextureLayered_get_width>` **(** **)** const |
|
|
+-----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_data_partial<class_TextureLayered_set_data_partial>` **(** :ref:`Image<class_image>` image, :ref:`int<class_int>` x_offset, :ref:`int<class_int>` y_offset, :ref:`int<class_int>` layer, :ref:`int<class_int>` mipmap=0 **)** |
|
|
+-----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_layer_data<class_TextureLayered_set_layer_data>` **(** :ref:`Image<class_image>` image, :ref:`int<class_int>` layer **)** |
|
|
+-----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
Member Variables
|
|
----------------
|
|
|
|
.. _class_TextureLayered_data:
|
|
|
|
- :ref:`Dictionary<class_dictionary>` **data**
|
|
|
|
.. _class_TextureLayered_flags:
|
|
|
|
- :ref:`int<class_int>` **flags**
|
|
|
|
|
|
Enums
|
|
-----
|
|
|
|
.. _enum_TextureLayered_Flags:
|
|
|
|
enum **Flags**
|
|
|
|
- **FLAG_MIPMAPS** = **1**
|
|
- **FLAG_REPEAT** = **2**
|
|
- **FLAG_FILTER** = **4**
|
|
- **FLAGS_DEFAULT** = **4**
|
|
|
|
|
|
Member Function Description
|
|
---------------------------
|
|
|
|
.. _class_TextureLayered_create:
|
|
|
|
- void **create** **(** :ref:`int<class_int>` width, :ref:`int<class_int>` height, :ref:`int<class_int>` depth, :ref:`Format<enum_image_format>` format, :ref:`int<class_int>` flags=4 **)**
|
|
|
|
.. _class_TextureLayered_get_depth:
|
|
|
|
- :ref:`int<class_int>` **get_depth** **(** **)** const
|
|
|
|
.. _class_TextureLayered_get_format:
|
|
|
|
- :ref:`Format<enum_image_format>` **get_format** **(** **)** const
|
|
|
|
.. _class_TextureLayered_get_height:
|
|
|
|
- :ref:`int<class_int>` **get_height** **(** **)** const
|
|
|
|
.. _class_TextureLayered_get_layer_data:
|
|
|
|
- :ref:`Image<class_image>` **get_layer_data** **(** :ref:`int<class_int>` layer **)** const
|
|
|
|
.. _class_TextureLayered_get_width:
|
|
|
|
- :ref:`int<class_int>` **get_width** **(** **)** const
|
|
|
|
.. _class_TextureLayered_set_data_partial:
|
|
|
|
- void **set_data_partial** **(** :ref:`Image<class_image>` image, :ref:`int<class_int>` x_offset, :ref:`int<class_int>` y_offset, :ref:`int<class_int>` layer, :ref:`int<class_int>` mipmap=0 **)**
|
|
|
|
.. _class_TextureLayered_set_layer_data:
|
|
|
|
- void **set_layer_data** **(** :ref:`Image<class_image>` image, :ref:`int<class_int>` layer **)**
|
|
|
|
|