The LARC Game Engine
A Simple Game Engine from the Laboratory for Recreational Computing
Public Member Functions | Public Attributes | List of all members
LSpriteDesc3D Class Reference

The 3D sprite descriptor. More...

#include <SpriteDesc.h>

Inheritance diagram for LSpriteDesc3D:
LSpriteDesc

Public Member Functions

 LSpriteDesc3D (const LSpriteDesc2D &, float)
 Constructor. More...
 
 LSpriteDesc3D ()
 Default constructor.
 
- Public Member Functions inherited from LSpriteDesc
 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.
 
- Public Attributes inherited from LSpriteDesc
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.
 

Detailed Description

Describes the sprite draw parameters for 3D sprites.

Constructor & Destructor Documentation

◆ LSpriteDesc3D()

LSpriteDesc3D::LSpriteDesc3D ( const LSpriteDesc2D d,
float  z 
)

Construct a 3D sprite descriptor from a 2D sprite descriptor and a depth.

Parameters
dA 2D sprite descriptor.
zDepth.