Texture

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.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Enums

Constants
enum Constants
Flags
enum Flags

Functions

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()

Return the texture size.

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)

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

flags
long flags [@property getter]
long flags [@property setter]

The texture's flags.

Static functions

_new
Texture _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta