2018-08-20 22:35:30 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2020-02-16 17:17:22 +00:00
<class name= "TextureLayered" inherits= "Texture" version= "4.0" >
2018-08-20 22:35:30 +00:00
<brief_description >
2020-01-26 05:59:51 +00:00
Base class for 3D texture types.
2018-08-20 22:35:30 +00:00
</brief_description>
<description >
2020-02-12 08:59:06 +00:00
Base class for [Texture2DArray], [Cubemap] and [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 [Texture2DArray]s, the layer specifies the array layer.
2018-08-20 22:35:30 +00:00
</description>
<tutorials >
</tutorials>
<methods >
2020-02-12 08:59:06 +00:00
<method name= "create_from_images" >
<return type= "int" enum= "Error" >
2018-08-20 22:35:30 +00:00
</return>
2020-02-12 08:59:06 +00:00
<argument index= "0" name= "images" type= "Array" >
2018-08-20 22:35:30 +00:00
</argument>
<description >
</description>
</method>
<method name= "get_format" qualifiers= "const" >
<return type= "int" enum= "Image.Format" >
</return>
<description >
2020-02-04 20:25:02 +00:00
Returns the current format being used by this texture. See [enum Image.Format] for details.
2018-08-20 22:35:30 +00:00
</description>
</method>
<method name= "get_height" qualifiers= "const" >
<return type= "int" >
</return>
<description >
2020-02-04 20:25:02 +00:00
Returns the height of the texture. Height is typically represented by the Y-axis.
2018-08-20 22:35:30 +00:00
</description>
</method>
<method name= "get_layer_data" qualifiers= "const" >
<return type= "Image" >
</return>
<argument index= "0" name= "layer" type= "int" >
</argument>
<description >
2020-02-04 20:25:02 +00:00
Returns an [Image] resource with the data from specified [code]layer[/code].
2018-08-20 22:35:30 +00:00
</description>
</method>
2020-02-12 08:59:06 +00:00
<method name= "get_layers" qualifiers= "const" >
2018-08-20 22:35:30 +00:00
<return type= "int" >
</return>
<description >
</description>
</method>
2020-02-12 08:59:06 +00:00
<method name= "get_width" qualifiers= "const" >
<return type= "int" >
2018-08-20 22:35:30 +00:00
</return>
<description >
2020-02-12 08:59:06 +00:00
Returns the width of the texture. Width is typically represented by the X-axis.
2018-08-20 22:35:30 +00:00
</description>
</method>
2020-02-12 08:59:06 +00:00
<method name= "update_layer" >
2018-08-20 22:35:30 +00:00
<return type= "void" >
</return>
<argument index= "0" name= "image" type= "Image" >
</argument>
<argument index= "1" name= "layer" type= "int" >
</argument>
<description >
</description>
</method>
</methods>
<constants >
</constants>
</class>