- draw
void draw(RID canvas_item, Vector2 position, Color modulate, bool transpose, Texture normal_map)
- drawRect
void drawRect(RID canvas_item, Rect2 rect, bool tile, Color modulate, bool transpose, Texture normal_map)
- drawRectRegion
void drawRectRegion(RID canvas_item, Rect2 rect, Rect2 src_rect, Color modulate, bool transpose, Texture normal_map, bool clip_uv)
- getData
Ref!Image getData()
- getFlags
long getFlags()
- getHeight
long getHeight()
Return the texture height.
- getSize
Vector2 getSize()
- getWidth
long getWidth()
Return the texture width.
- hasAlpha
bool hasAlpha()
- opAssign
Texture opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(Texture other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
- setFlags
void setFlags(long flags)
Texture for 2D and 3D.
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 @GDScript.load.