- draw
void draw(Vec2f pos, Vec2f anchor)
Render the whole texture here
- draw
void draw(Vec2f pos, Vec4i srcRect, Vec2f anchor)
Render a section of the texture here
- draw
void draw(Vec2f pos, Vec2f size, Vec2f anchor)
Render the whole texture here
- draw
void draw(Vec2f pos, Vec2f size, Vec4i srcRect, Vec2f anchor)
Render a section of the texture here
- draw
void draw(Vec2f pos, Vec2f size, Vec4i srcRect, float angle, Flip flip, Vec2f anchor)
Render a section of the texture here
- load
void load(SDL_Surface* surface)
Undocumented in source. Be warned that the author may not have intended to support it.
- load
void load(string path)
- postload
void postload()
Call it if you set the preload flag on ctor.
- unload
void unload()
- isLoaded
bool isLoaded [@property getter]
- width
uint width [@property getter]
- height
uint height [@property getter]
- color
Color color [@property getter]
Color color [@property setter]
Color added to the renderable.
- alpha
float alpha [@property getter]
float alpha [@property setter]
- blend
Blend blend [@property getter]
Blend blend [@property setter]
- draw
void draw(Vec2f pos, Vec2f anchor)
Render the whole texture here
- draw
void draw(Vec2f pos, Vec4i srcRect, Vec2f anchor)
Render a section of the texture here
- draw
void draw(Vec2f pos, Vec2f size, Vec2f anchor)
Render the whole texture here
- draw
void draw(Vec2f pos, Vec2f size, Vec4i srcRect, Vec2f anchor)
Render a section of the texture here
- draw
void draw(Vec2f pos, Vec2f size, Vec4i srcRect, float angle, Flip flip, Vec2f anchor)
Render a section of the texture here
Base rendering class.