SAGE
A Simple Academic Game Engine
Loading...
Searching...
No Matches
Sage::CSpriteDesc3D Class Reference

The 3D sprite descriptor. More...

#include <SageSpriteDesc.h>

Inheritance diagram for Sage::CSpriteDesc3D:
Collaboration diagram for Sage::CSpriteDesc3D:

Public Member Functions

 CSpriteDesc3D (const CSpriteDesc2D &, float)
 Constructor.
 
 CSpriteDesc3D ()
 Default constructor.
 
- Public Member Functions inherited from Sage::CSpriteDesc
 CSpriteDesc ()
 Constructor.
 
 CSpriteDesc (UINT, float=0)
 Constructor.
 

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 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.
 

Detailed Description

Describes the sprite draw parameters for 3D sprites.

Constructor & Destructor Documentation

◆ CSpriteDesc3D()

CSpriteDesc3D::CSpriteDesc3D ( const CSpriteDesc2D & d,
float z )

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

Parameters
dA 2D sprite descriptor.
zDepth.
Here is the call graph for this function: