0.2.0-dev Download ZIP
93 lines ·3.5 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="Texture3D" inherits="Texture" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Base class for 3-dimensional textures. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | 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]. |
| 8 | All images need to have the same width, height and number of mipmap levels. |
| 9 | To create such a texture file yourself, reimport your image files using the Godot Editor import presets. |
| 10 | </description> |
| 11 | <tutorials> |
| 12 | </tutorials> |
| 13 | <methods> |
| 14 | <method name="_get_data" qualifiers="virtual required const"> |
| 15 | <return type="Image[]" /> |
| 16 | <description> |
| 17 | Called when the [Texture3D]'s data is queried. |
| 18 | </description> |
| 19 | </method> |
| 20 | <method name="_get_depth" qualifiers="virtual required const"> |
| 21 | <return type="int" /> |
| 22 | <description> |
| 23 | Called when the [Texture3D]'s depth is queried. |
| 24 | </description> |
| 25 | </method> |
| 26 | <method name="_get_format" qualifiers="virtual required const"> |
| 27 | <return type="int" enum="Image.Format" /> |
| 28 | <description> |
| 29 | Called when the [Texture3D]'s format is queried. |
| 30 | </description> |
| 31 | </method> |
| 32 | <method name="_get_height" qualifiers="virtual required const"> |
| 33 | <return type="int" /> |
| 34 | <description> |
| 35 | Called when the [Texture3D]'s height is queried. |
| 36 | </description> |
| 37 | </method> |
| 38 | <method name="_get_width" qualifiers="virtual required const"> |
| 39 | <return type="int" /> |
| 40 | <description> |
| 41 | Called when the [Texture3D]'s width is queried. |
| 42 | </description> |
| 43 | </method> |
| 44 | <method name="_has_mipmaps" qualifiers="virtual required const"> |
| 45 | <return type="bool" /> |
| 46 | <description> |
| 47 | Called when the presence of mipmaps in the [Texture3D] is queried. |
| 48 | </description> |
| 49 | </method> |
| 50 | <method name="create_placeholder" qualifiers="const"> |
| 51 | <return type="Resource" /> |
| 52 | <description> |
| 53 | Creates a placeholder version of this resource ([PlaceholderTexture3D]). |
| 54 | </description> |
| 55 | </method> |
| 56 | <method name="get_data" qualifiers="const"> |
| 57 | <return type="Image[]" /> |
| 58 | <description> |
| 59 | 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. |
| 60 | </description> |
| 61 | </method> |
| 62 | <method name="get_depth" qualifiers="const"> |
| 63 | <return type="int" /> |
| 64 | <description> |
| 65 | Returns the [Texture3D]'s depth in pixels. Depth is typically represented by the Z axis (a dimension not present in [Texture2D]). |
| 66 | </description> |
| 67 | </method> |
| 68 | <method name="get_format" qualifiers="const"> |
| 69 | <return type="int" enum="Image.Format" /> |
| 70 | <description> |
| 71 | Returns the current format being used by this texture. |
| 72 | </description> |
| 73 | </method> |
| 74 | <method name="get_height" qualifiers="const"> |
| 75 | <return type="int" /> |
| 76 | <description> |
| 77 | Returns the [Texture3D]'s height in pixels. Width is typically represented by the Y axis. |
| 78 | </description> |
| 79 | </method> |
| 80 | <method name="get_width" qualifiers="const"> |
| 81 | <return type="int" /> |
| 82 | <description> |
| 83 | Returns the [Texture3D]'s width in pixels. Width is typically represented by the X axis. |
| 84 | </description> |
| 85 | </method> |
| 86 | <method name="has_mipmaps" qualifiers="const"> |
| 87 | <return type="bool" /> |
| 88 | <description> |
| 89 | Returns [code]true[/code] if the [Texture3D] has generated mipmaps. |
| 90 | </description> |
| 91 | </method> |
| 92 | </methods> |
| 93 | </class> |