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

The 3D sprite descriptor. More...

#include <SpriteDesc.h>

Inherits CSpriteDesc.

Public Member Functions

 CSpriteDesc3D (const CSpriteDesc2D &, float)
 Constructor. More...
 
 CSpriteDesc3D ()
 Default 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.
 

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.