Drawable

Everything that can be rendered.

Members

Functions

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

Properties

alpha
float alpha [@property getter]
float alpha [@property setter]

Alpha

blend
Blend blend [@property getter]
Blend blend [@property setter]

Blending algorithm.

color
Color color [@property getter]
Color color [@property setter]

Color added to the renderable.

height
uint height [@property getter]

Height in texels.

isLoaded
bool isLoaded [@property getter]

loaded ?

width
uint width [@property getter]

Width in texels.

Meta