2018-08-21 06:35:30 +08:00
<?xml version="1.0" encoding="UTF-8" ?>
2022-02-14 21:18:53 +08:00
<class name= "TextureLayered" inherits= "Texture" version= "4.0" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2018-08-21 06:35:30 +08:00
<brief_description >
2020-01-26 13:59:51 +08:00
Base class for 3D texture types.
2018-08-21 06:35:30 +08:00
</brief_description>
<description >
2020-02-12 16:59:06 +08: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-21 06:35:30 +08:00
</description>
<tutorials >
</tutorials>
<methods >
2022-03-10 15:17:38 +08:00
<method name= "_get_format" qualifiers= "virtual const" >
<return type= "int" enum= "Image.Format" />
<description >
</description>
</method>
<method name= "_get_height" qualifiers= "virtual const" >
<return type= "int" />
<description >
</description>
</method>
<method name= "_get_layer_data" qualifiers= "virtual const" >
<return type= "Image" />
<argument index= "0" name= "layer_index" type= "int" />
<description >
</description>
</method>
<method name= "_get_layered_type" qualifiers= "virtual const" >
<return type= "int" />
<description >
</description>
</method>
<method name= "_get_layers" qualifiers= "virtual const" >
<return type= "int" />
<description >
</description>
</method>
<method name= "_get_width" qualifiers= "virtual const" >
<return type= "int" />
<description >
</description>
</method>
<method name= "_has_mipmaps" qualifiers= "virtual const" >
<return type= "bool" />
<description >
</description>
</method>
2018-08-21 06:35:30 +08:00
<method name= "get_format" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "int" enum= "Image.Format" />
2018-08-21 06:35:30 +08:00
<description >
2020-02-05 04:25:02 +08:00
Returns the current format being used by this texture. See [enum Image.Format] for details.
2018-08-21 06:35:30 +08:00
</description>
</method>
<method name= "get_height" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "int" />
2018-08-21 06:35:30 +08:00
<description >
2020-02-05 04:25:02 +08:00
Returns the height of the texture. Height is typically represented by the Y-axis.
2018-08-21 06:35:30 +08:00
</description>
</method>
<method name= "get_layer_data" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "Image" />
<argument index= "0" name= "layer" type= "int" />
2018-08-21 06:35:30 +08:00
<description >
2020-02-05 04:25:02 +08:00
Returns an [Image] resource with the data from specified [code]layer[/code].
2018-08-21 06:35:30 +08:00
</description>
</method>
2020-05-12 16:10:34 +08:00
<method name= "get_layered_type" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "int" enum= "TextureLayered.LayeredType" />
2020-05-12 16:10:34 +08:00
<description >
</description>
</method>
2020-02-12 16:59:06 +08:00
<method name= "get_layers" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "int" />
2018-08-21 06:35:30 +08:00
<description >
</description>
</method>
2020-02-12 16:59:06 +08:00
<method name= "get_width" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "int" />
2018-08-21 06:35:30 +08:00
<description >
2020-02-12 16:59:06 +08:00
Returns the width of the texture. Width is typically represented by the X-axis.
2018-08-21 06:35:30 +08:00
</description>
</method>
2020-05-12 16:10:34 +08:00
<method name= "has_mipmaps" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "bool" />
2018-08-21 06:35:30 +08:00
<description >
</description>
</method>
</methods>
<constants >
2020-05-12 16:10:34 +08:00
<constant name= "LAYERED_TYPE_2D_ARRAY" value= "0" enum= "LayeredType" >
</constant>
<constant name= "LAYERED_TYPE_CUBEMAP" value= "1" enum= "LayeredType" >
</constant>
<constant name= "LAYERED_TYPE_CUBEMAP_ARRAY" value= "2" enum= "LayeredType" >
</constant>
2018-08-21 06:35:30 +08:00
</constants>
</class>