Contains all information necessary for animation frames of a Sprite. More...
Public Member Functions | |
| spriteFrame (Image *src, int x, int y, int w, int h, int aX, int aY, int d) | |
| spriteFrame (const spriteFrame &spriteframe) | |
| spriteFrame & | operator= (const spriteFrame &rhs) |
| ~spriteFrame () | |
Public Attributes | |
| Image * | mFrameImage |
| int | mAnchorX |
| int | mAnchorY |
| Uint | mWidth |
| Uint | mHeight |
| Uint | mFrameDelay |
Contains all information necessary for animation frames of a Sprite.
| Sprite::spriteFrame::spriteFrame | ( | Image * | src, | |
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h, | |||
| int | aX, | |||
| int | aY, | |||
| int | d | |||
| ) |
Constructor
| src | A pointer to a source Image to copy from. | |
| x | X-Coordinte of the area to copy from the source Image object. | |
| y | Y-Coordinte of the area to copy from the source Image object. | |
| w | Width of the area to copy from the source Image object. | |
| h | Height of the area to copy from the source Image object. | |
| aX | X-Axis of the Anchor Point for this spriteFrame. | |
| aY | Y-Axis of the Anchor Point for this spriteFrame. | |
| d | Length of time milliseconds to display this spriteFrame during animation playback. |
| Sprite::spriteFrame::spriteFrame | ( | const spriteFrame & | spriteframe | ) |
Copy Constructor
| Sprite::spriteFrame::~spriteFrame | ( | ) |
Free memory allocated for the sprite frame.
| Sprite::spriteFrame & Sprite::spriteFrame::operator= | ( | const spriteFrame & | rhs | ) |
Assignment Operator
1.7.1