From c5700f74648d8b04229f4d4c77937c1af3a798a7 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Sat, 25 Jan 2020 21:59:51 -0800 Subject: Complete various class references --- doc/classes/Texture.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'doc/classes/Texture.xml') 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 @@ 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. @@ -24,6 +25,7 @@ + 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]. @@ -42,6 +44,7 @@ + Draws the texture using a [CanvasItem] with the [VisualServer] API. Equivalent to [method VisualServer.canvas_item_add_texture_rect]. @@ -62,12 +65,14 @@ + Draws a part of the texture using a [CanvasItem] with the [VisualServer] API. Equivalent to [method VisualServer.canvas_item_add_texture_rect_region]. + Returns an [Image] with the data from this [Texture]. [Image]s can be accessed and manipulated directly. @@ -95,12 +100,13 @@ + Returns [code]true[/code] if this [Texture] has an alpha channel. - The texture's flags. + The texture's [enum Flags]. [enum Flags] are used to set various properties of the [Texture]. -- cgit v1.2.3