#include <SpriteEngine.h>
Public Types | |
enum | OptimizationMode { optNONE = 0, optBUFFER = 1, optNO_MASK = 2 } |
Public Methods | |
Sprite (DmResID bitmapID, DmResID maskID = -1, Coord hotSpotX = 0, Coord hotSpotY = 0, Boolean visible = true, OptimizationMode optimizationMode = optNONE) | |
Create a Sprite. More... | |
~Sprite () | |
Destroy the Sprite and deallocate all used resources. More... | |
void | show () |
Show the sprite during subsequent draws. More... | |
void | hide () |
Hide the sprite during subsequent draws. More... | |
Boolean | setVisibility (Boolean visible) |
Set the visibility of the sprite through a flag. More... | |
Boolean | isVisible () const |
Will the sprite be drawn during subsequent draws? More... | |
void | move (Coord x, Coord y) |
Move the sprite (i.e. More... | |
void | draw (RectangleType *bounds = NULL) const |
Draw the sprite at its current location. More... | |
void | getBounds (RectangleType *bounds) const |
Get the screen space filled by the sprite. More... | |
Friends | |
class | SpriteGroup |
a movable graphical object with a transparent background.
Definition at line 42 of file SpriteEngine.h.
|
Definition at line 46 of file SpriteEngine.h. |
|
Create a Sprite.
Definition at line 64 of file SpriteEngine.h. |
|
Destroy the Sprite and deallocate all used resources.
Definition at line 140 of file SpriteEngine.h. |
|
Draw the sprite at its current location. Inquire the current draw window and allocate draw buffers as neccessary.
Definition at line 212 of file SpriteEngine.h. |
|
Get the screen space filled by the sprite.
Definition at line 258 of file SpriteEngine.h. Referenced by SpriteGroup::addSprite(). |
|
Hide the sprite during subsequent draws.
Definition at line 166 of file SpriteEngine.h. |
|
Will the sprite be drawn during subsequent draws?
Definition at line 189 of file SpriteEngine.h. Referenced by DemoActionEngine::nextPeriod(). |
|
Move the sprite (i.e. its hotspot) to the specified coordinates. Definition at line 198 of file SpriteEngine.h. Referenced by Sprite(), DemoActionEngine::nextPeriod(), and DemoActionEngine::restoreState(). |
|
Set the visibility of the sprite through a flag.
Definition at line 177 of file SpriteEngine.h. Referenced by DemoActionEngine::nextPeriod(). |
|
Show the sprite during subsequent draws.
Definition at line 157 of file SpriteEngine.h. |
|
Definition at line 394 of file SpriteEngine.h. |