SPACE::Graphic::cSprite Class Reference
List of all members.
Public Member Functions |
| cSprite (SDL_Surface *_Screen) |
bool | Load (const char *_ImagePath) |
| Load a normal Image.
|
void | SetColorKey (int _R, int _G, int _B) |
| Set the ColorKey.
|
void | SetPos (float _X, float _Y) |
| sets the Position
|
void | Move (float _dX, float _dY) |
bool | Render () |
| render a simple sprite
|
SDL_Rect | GetRect () |
void | SetH (int h) |
void | SetW (int h) |
Member Function Documentation
SDL_Rect SPACE::Graphic::cSprite::GetRect |
( |
|
) |
[inline] |
void cSprite::Move |
( |
float |
_dX, |
|
|
float |
_dY | |
|
) |
| | |
Use this, if you want to move the sprite (eg. 10 Pixel) to the (eg. left).
- Parameters:
-
| _dX | The ammount we add in X coordinate |
| _dY | The ammount we add in Y coordinate |
The documentation for this class was generated from the following files: