Texture

Undocumented in source.

Constructors

this
this()
Undocumented in source.
this
this(SDL_Surface* surface)
Undocumented in source.
this
this(string path)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

draw
void draw(Vec2f pos, Vec2f anchor)
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw(Vec2f pos, Vec4i srcRect, Vec2f anchor)
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw(Vec2f pos, Vec2f size, Vec2f anchor)
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw(Vec2f pos, Vec2f size, Vec4i srcRect, Vec2f anchor)
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw(Vec2f pos, Vec2f size, Vec4i srcRect, float angle, Flip flip, Vec2f anchor)
Undocumented in source. Be warned that the author may not have intended to support it.
load
void load(string path)
Undocumented in source. Be warned that the author may not have intended to support it.
loadFromSurface
void loadFromSurface(SDL_Surface* surface)
Undocumented in source. Be warned that the author may not have intended to support it.
setAlpha
void setAlpha(float alpha)
Undocumented in source. Be warned that the author may not have intended to support it.
setColorMod
void setColorMod(Color color, Blend blend)
Undocumented in source. Be warned that the author may not have intended to support it.
unload
void unload()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

height
uint height [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isLoaded
bool isLoaded [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
width
uint width [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta