diff options
author | clayjohn <claynjohn@gmail.com> | 2020-01-25 21:59:51 -0800 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2020-01-26 00:27:51 -0800 |
commit | c5700f74648d8b04229f4d4c77937c1af3a798a7 (patch) | |
tree | be6a5cf13efc17546f7cb859cd3d08a89468297a /doc/classes/Texture.xml | |
parent | be1bc53d42577c02cbdf32fff5e2a60234e6270a (diff) |
Complete various class references
Diffstat (limited to 'doc/classes/Texture.xml')
-rw-r--r-- | doc/classes/Texture.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/classes/Texture.xml b/doc/classes/Texture.xml index 238d6929ba..05ceb1cd29 100644 --- a/doc/classes/Texture.xml +++ b/doc/classes/Texture.xml @@ -6,6 +6,7 @@ <description> A texture works by registering an image in the video hardware, which then can be used in 3D models or 2D [Sprite] or GUI [Control]. Textures are often created by loading them from a file. See [method @GDScript.load]. + [Texture] is a base for other resources. It cannot be used directly. </description> <tutorials> </tutorials> @@ -24,6 +25,7 @@ <argument index="4" name="normal_map" type="Texture" default="null"> </argument> <description> + Draws the texture using a [CanvasItem] with the [VisualServer] API at the specified [code]position[/code]. Equivalent to [method VisualServer.canvas_item_add_texture_rect] with a rect at [code]position[/code] and the size of this [Texture]. </description> </method> <method name="draw_rect" qualifiers="const"> @@ -42,6 +44,7 @@ <argument index="5" name="normal_map" type="Texture" default="null"> </argument> <description> + Draws the texture using a [CanvasItem] with the [VisualServer] API. Equivalent to [method VisualServer.canvas_item_add_texture_rect]. </description> </method> <method name="draw_rect_region" qualifiers="const"> @@ -62,12 +65,14 @@ <argument index="6" name="clip_uv" type="bool" default="true"> </argument> <description> + Draws a part of the texture using a [CanvasItem] with the [VisualServer] API. Equivalent to [method VisualServer.canvas_item_add_texture_rect_region]. </description> </method> <method name="get_data" qualifiers="const"> <return type="Image"> </return> <description> + Returns an [Image] with the data from this [Texture]. [Image]s can be accessed and manipulated directly. </description> </method> <method name="get_height" qualifiers="const"> @@ -95,12 +100,13 @@ <return type="bool"> </return> <description> + Returns [code]true[/code] if this [Texture] has an alpha channel. </description> </method> </methods> <members> <member name="flags" type="int" setter="set_flags" getter="get_flags" default="4"> - The texture's flags. + The texture's [enum Flags]. [enum Flags] are used to set various properties of the [Texture]. </member> </members> <constants> |