![]() |
The LARC Game Engine
A Simple Game Engine from the Laboratory for Recreational Computing
|
The 2D sprite descriptor. More...
#include <SpriteDesc.h>
Public Member Functions | |
LSpriteDesc2D () | |
Constructor. More... | |
LSpriteDesc2D (UINT, const Vector2 &) | |
Constructor. More... | |
![]() | |
LSpriteDesc () | |
Constructor. More... | |
LSpriteDesc (UINT) | |
Constructor. More... | |
Public Attributes | |
Vector2 | m_vPos = Vector2::Zero |
Position. | |
![]() | |
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 channel, 0.0f for transparent, 1.0f for opaque. | |
Describes the sprite draw parameters for 2D sprites.
LSpriteDesc2D::LSpriteDesc2D | ( | ) |
Default constructor.
LSpriteDesc2D::LSpriteDesc2D | ( | UINT | n, |
const Vector2 & | pos | ||
) |
Constructor.
n | Sprite index. |
pos | Initial position. |