A structure used to convieniently hold information about a Sprite. More...
#include <Sprite.h>
Public Member Functions | |
| Sprite () | |
| Default constructor. | |
| Sprite (const std::string image, const int nFrameCount=0, const int nFrameWidth=0, const int nFrameHeight=0, const int nFramesPerRow=0) | |
| Constructor. | |
Public Attributes | |
| std::string | _image |
| The name of the image the sprite represents. | |
| int | _nFrameCount |
| The number of frames inside the sprite. A frame is rectangular area than be be specifically referenced to. | |
| int | _nFrameWidth |
| The width of each frame on the sprite in pixels. | |
| int | _nFrameHeight |
| The height of each frame on the sprite, in pixels. | |
| int | _nFramesPerRow |
| The number of frames that fit on a horizontal row. | |
A structure used to convieniently hold information about a Sprite.
1.6.1