![]() |
SAGE
A Simple Academic Game Engine
|
The 2D sprite descriptor. More...
#include <SageSpriteDesc.h>
Public Member Functions | |
| CSpriteDesc2D () | |
| Constructor. | |
| CSpriteDesc2D (UINT, const Vector2 &, float=0) | |
| Constructor. | |
Public Member Functions inherited from Sage::CSpriteDesc | |
| CSpriteDesc () | |
| Constructor. | |
| CSpriteDesc (UINT, float=0) | |
| Constructor. | |
Public Attributes | |
| Vector2 | m_vPos = Vector2::Zero |
| Position. | |
Public Attributes inherited from Sage::CSpriteDesc | |
| UINT | m_nSpriteIndex = 0 |
| Sprite index. | |
| UINT | m_nCurrentFrame = 0 |
| Current animation frame. | |
| float | m_fXScale = 1.0f |
| Horizontal scale. | |
| float | m_fYScale = 1.0f |
| Vertical scale. | |
| float | m_fRoll = 0.0f |
| Z-axis rotation. | |
| XMFLOAT4 | m_f4Tint = XMFLOAT4(1.0f, 1.0f, 1.0f, 1.0f) |
| Color tint. | |
| float | m_fAlpha = 1.0f |
| Alpha, 0 for transparent, 1 for opaque. | |
Describes the sprite draw parameters for 2D sprites.
| CSpriteDesc2D::CSpriteDesc2D | ( | ) |
Default constructor.
| CSpriteDesc2D::CSpriteDesc2D | ( | UINT | n, |
| const Vector2 & | pos, | ||
| float | a = 0 ) |
Constructor.
| n | Sprite index. |
| pos | Initial position. |
| a | Initial roll angle. |