2020-09-10 03:47:09 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2022-02-14 13:18:53 +00:00
<class name= "Texture3D" inherits= "Texture" version= "4.0" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2020-09-10 03:47:09 +00:00
<brief_description >
2022-10-24 21:19:32 +00:00
Base class for 3-dimensionnal textures.
2020-09-10 03:47:09 +00:00
</brief_description>
<description >
2022-10-24 21:19:32 +00:00
Base class for [ImageTexture3D] and [CompressedTexture3D]. Cannot be used directly, but contains all the functions necessary for accessing the derived resource types. [Texture3D] is the base class for all 3-dimensional texture types. See also [TextureLayered].
All images need to have the same width, height and number of mipmap levels.
To create such a texture file yourself, reimport your image files using the Godot Editor import presets.
2020-09-10 03:47:09 +00:00
</description>
<tutorials >
</tutorials>
<methods >
2022-03-10 07:17:38 +00:00
<method name= "_get_data" qualifiers= "virtual const" >
<return type= "Image[]" />
<description >
2022-10-24 21:19:32 +00:00
Called when the [Texture3D]'s data is queried.
2022-03-10 07:17:38 +00:00
</description>
</method>
<method name= "_get_depth" qualifiers= "virtual const" >
<return type= "int" />
<description >
2022-10-24 21:19:32 +00:00
Called when the [Texture3D]'s depth is queried.
2022-03-10 07:17:38 +00:00
</description>
</method>
<method name= "_get_format" qualifiers= "virtual const" >
<return type= "int" enum= "Image.Format" />
<description >
2022-10-24 21:19:32 +00:00
Called when the [Texture3D]'s format is queried.
2022-03-10 07:17:38 +00:00
</description>
</method>
<method name= "_get_height" qualifiers= "virtual const" >
<return type= "int" />
<description >
2022-10-24 21:19:32 +00:00
Called when the [Texture3D]'s height is queried.
2022-03-10 07:17:38 +00:00
</description>
</method>
<method name= "_get_width" qualifiers= "virtual const" >
<return type= "int" />
<description >
2022-10-24 21:19:32 +00:00
Called when the [Texture3D]'s width is queried.
2022-03-10 07:17:38 +00:00
</description>
</method>
<method name= "_has_mipmaps" qualifiers= "virtual const" >
<return type= "bool" />
<description >
2022-10-24 21:19:32 +00:00
Called when the presence of mipmaps in the [Texture3D] is queried.
2022-03-10 07:17:38 +00:00
</description>
</method>
2020-09-10 03:47:09 +00:00
<method name= "get_data" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "Image[]" />
2020-09-10 03:47:09 +00:00
<description >
2022-10-24 21:19:32 +00:00
Returns the [Texture3D]'s data as an array of [Image]s. Each [Image] represents a [i]slice[/i] of the [Texture3D], with different slices mapping to different depth (Z axis) levels.
2020-09-10 03:47:09 +00:00
</description>
</method>
<method name= "get_depth" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
2020-09-10 03:47:09 +00:00
<description >
2022-10-24 21:19:32 +00:00
Returns the [Texture3D]'s depth in pixels. Depth is typically represented by the Z axis (a dimension not present in [Texture2D]).
2020-09-10 03:47:09 +00:00
</description>
</method>
<method name= "get_format" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "int" enum= "Image.Format" />
2020-09-10 03:47:09 +00:00
<description >
2022-10-24 21:19:32 +00:00
Returns the current format being used by this texture. See [enum Image.Format] for details.
2020-09-10 03:47:09 +00:00
</description>
</method>
<method name= "get_height" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
2020-09-10 03:47:09 +00:00
<description >
2022-10-24 21:19:32 +00:00
Returns the [Texture3D]'s height in pixels. Width is typically represented by the Y axis.
2020-09-10 03:47:09 +00:00
</description>
</method>
<method name= "get_width" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
2020-09-10 03:47:09 +00:00
<description >
2022-10-24 21:19:32 +00:00
Returns the [Texture3D]'s width in pixels. Width is typically represented by the X axis.
2020-09-10 03:47:09 +00:00
</description>
</method>
<method name= "has_mipmaps" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
2020-09-10 03:47:09 +00:00
<description >
2022-10-24 21:19:32 +00:00
Returns [code]true[/code] if the [Texture3D] has generated mipmaps.
2020-09-10 03:47:09 +00:00
</description>
</method>
</methods>
</class>