Sprite

Undocumented in source.

Constructors

this
this(Texture newTexture, Flip newFlip)
Undocumented in source.
this
this(Texture newTexture, Vec4i newClip, Flip newFlip)
Undocumented in source.

Members

Functions

draw
void draw(Vec2f position)
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw(Vec2f pivot, float pivotDistance, float pivotAngle)
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw(Vec2f pivot, Vec2f pivotOffset, float pivotAngle)
Undocumented in source. Be warned that the author may not have intended to support it.
drawRotated
void drawRotated(Vec2f position)
Undocumented in source. Be warned that the author may not have intended to support it.
drawUnchecked
void drawUnchecked(Vec2f position)
Undocumented in source. Be warned that the author may not have intended to support it.
fit
void fit(Vec2f newSize)
Undocumented in source. Be warned that the author may not have intended to support it.
isInside
bool isInside(Vec2f position)
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
Sprite opAssign(Texture newTexture)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

center
Vec2f center [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isValid
bool isValid [@property getter]
anchor
Vec2f anchor;
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

angle
float angle;
Undocumented in source.
blend
Blend blend;
Undocumented in source.
clip
Vec4i clip;
Undocumented in source.
color
Color color;
Undocumented in source.
flip
Flip flip;
Undocumented in source.
scale
Vec2f scale;
size
Vec2f size;
Undocumented in source.
texture
Texture texture;
Undocumented in source.

Meta