dmech v0.3.1 (2017-11-12T11:54:41Z)
Home
Dub
Repo
AnimatedSprite
dgl
graphics
sprite
Undocumented in source.
class
AnimatedSprite :
Drawable
{
Texture
texture
;
uint
tileWidth
;
uint
tileHeight
;
uint
tx
;
uint
ty
;
uint
numHTiles
;
uint
numVTiles
;
float
framerate
;
double
counter
;
Vector2f
position
;
this
(Texture sheetTex, uint w, uint h);
void
draw
(double dt);
void
advanceFrame
();
~this
();
void
free
();
}
Constructors
this
this
(Texture sheetTex, uint w, uint h)
Undocumented in source.
Destructor
~this
~this
()
Undocumented in source.
Members
Functions
advanceFrame
void
advanceFrame
()
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void
draw
(double dt)
Undocumented in source. Be warned that the author may not have intended to support it.
free
void
free
()
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
counter
double
counter
;
Undocumented in source.
framerate
float
framerate
;
Undocumented in source.
numHTiles
uint
numHTiles
;
Undocumented in source.
numVTiles
uint
numVTiles
;
Undocumented in source.
position
Vector2f
position
;
Undocumented in source.
texture
Texture
texture
;
Undocumented in source.
tileHeight
uint
tileHeight
;
Undocumented in source.
tileWidth
uint
tileWidth
;
Undocumented in source.
tx
uint
tx
;
Undocumented in source.
ty
uint
ty
;
Undocumented in source.
Inherited Members
From Drawable
draw
void
draw
(double dt)
Undocumented in source.
Meta
Source
See Implementation
dgl
graphics
sprite
classes
AnimatedSprite
ScreenSprite
Sprite