![]() |
The LARC Game Engine
A Simple Game Engine from the Laboratory for Recreational Computing
|
The 3D sprite descriptor. More...
#include <SpriteDesc.h>
Public Member Functions | |
LSpriteDesc3D (const LSpriteDesc2D &, float) | |
Constructor. More... | |
LSpriteDesc3D () | |
Default constructor. | |
![]() | |
LSpriteDesc () | |
Constructor. More... | |
LSpriteDesc (UINT) | |
Constructor. More... | |
Public Attributes | |
Vector3 | m_vPos = Vector3::Zero |
Position. | |
BoundingBox | m_sAabb |
Axially aligned bounding box. | |
float | m_fYaw = 0.0f |
Y-axis rotation. | |
float | m_fPitch = 0.0f |
X-axis rotation. | |
![]() | |
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 3D sprites.
LSpriteDesc3D::LSpriteDesc3D | ( | const LSpriteDesc2D & | d, |
float | z | ||
) |
Construct a 3D sprite descriptor from a 2D sprite descriptor and a depth.
d | A 2D sprite descriptor. |
z | Depth. |