#include <Sprite.h>
Public Member Functions | |
| Sprite (const SpriteID &id) | |
| ~Sprite () | |
| void | InitFromFile (char *filename) |
| void | Draw (const unsigned int &x, const unsigned int &y, unsigned int frame=0) |
| void | Shutdown () |
| SpriteID | GetID () |
| unsigned int | GetNumFrames () |
| unsigned int | GetWidth () |
| unsigned int | GetHeight () |
| ColourRGB | GetColour () |
Protected Member Functions | |
| void | WritePixel (SDL_Surface *surface, int x, int y, const ColourRGB &colour) |
Protected Attributes | |
| unsigned int | m_numFrames |
| unsigned int | m_width |
| unsigned int | m_height |
| SDL_Surface * | m_pFrames |
| ColourRGB | m_colour |
| SpriteID | m_ID |
Definition at line 8 of file Sprite.h.
| Sprite::Sprite | ( | const SpriteID & | id | ) |
Definition at line 11 of file Sprite.cpp.
| Sprite::~Sprite | ( | ) |
Definition at line 16 of file Sprite.cpp.
| void Sprite::Draw | ( | const unsigned int & | x, | |
| const unsigned int & | y, | |||
| unsigned int | frame = 0 | |||
| ) |
Definition at line 26 of file Sprite.cpp.
| void Sprite::InitFromFile | ( | char * | filename | ) |
Definition at line 21 of file Sprite.cpp.
| void Sprite::Shutdown | ( | ) |
Definition at line 33 of file Sprite.cpp.
| void Sprite::WritePixel | ( | SDL_Surface * | surface, | |
| int | x, | |||
| int | y, | |||
| const ColourRGB & | colour | |||
| ) | [protected] |
Definition at line 39 of file Sprite.cpp.
ColourRGB Sprite::m_colour [protected] |
unsigned int Sprite::m_height [protected] |
SpriteID Sprite::m_ID [protected] |
unsigned int Sprite::m_numFrames [protected] |
SDL_Surface* Sprite::m_pFrames [protected] |
unsigned int Sprite::m_width [protected] |
1.5.9