#include <BoxSprite.h>
Public Member Functions | |
| BoxSprite (const SpriteID &id, const unsigned int &w, const unsigned int &h, const ColourRGB &borderColour, const ColourRGB &fillColour, unsigned int borderSize=1) | |
| 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 6 of file BoxSprite.h.
| BoxSprite::BoxSprite | ( | const SpriteID & | id, | |
| const unsigned int & | w, | |||
| const unsigned int & | h, | |||
| const ColourRGB & | borderColour, | |||
| const ColourRGB & | fillColour, | |||
| unsigned int | borderSize = 1 | |||
| ) |
Definition at line 7 of file BoxSprite.cpp.
| void Sprite::Draw | ( | const unsigned int & | x, | |
| const unsigned int & | y, | |||
| unsigned int | frame = 0 | |||
| ) | [inherited] |
Definition at line 26 of file Sprite.cpp.
| void Sprite::InitFromFile | ( | char * | filename | ) | [inherited] |
Definition at line 21 of file Sprite.cpp.
| void Sprite::Shutdown | ( | ) | [inherited] |
Definition at line 33 of file Sprite.cpp.
| void Sprite::WritePixel | ( | SDL_Surface * | surface, | |
| int | x, | |||
| int | y, | |||
| const ColourRGB & | colour | |||
| ) | [protected, inherited] |
Definition at line 39 of file Sprite.cpp.
ColourRGB Sprite::m_colour [protected, inherited] |
unsigned int Sprite::m_height [protected, inherited] |
SpriteID Sprite::m_ID [protected, inherited] |
unsigned int Sprite::m_numFrames [protected, inherited] |
SDL_Surface* Sprite::m_pFrames [protected, inherited] |
unsigned int Sprite::m_width [protected, inherited] |
1.5.9