Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
Ult::DynamicModel Class Reference

#include <DynamicModel.h>

Public Member Functions

 DynamicModel ()
 
virtual ~DynamicModel ()
 
float * GetTransformation ()
 
void SetTransformation (const Matrix4x4 &m)
 
Handle< ModelResourceTag > & GetModelHandle ()
 
Handle< EffectResourceTag > & GetEffectHandle ()
 
void SetModelHandle (Handle< ModelResourceTag > &handle)
 
void SetEffectHandle (Handle< EffectResourceTag > &handle)
 
void SetCurrentLOD (const int index)
 
int GetCurrentLOD () const
 
void SetIsVisible (const bool val)
 
bool GetIsVisible () const
 

Detailed Description

Represents a 3D model with a transformation, render effect, and level of detail (LOD).

Constructor & Destructor Documentation

◆ DynamicModel()

Ult::DynamicModel::DynamicModel ( )
inline

DynamicModel constructor.

◆ ~DynamicModel()

virtual Ult::DynamicModel::~DynamicModel ( )
inlinevirtual

DynamicModel destructor.

Member Function Documentation

◆ GetCurrentLOD()

int Ult::DynamicModel::GetCurrentLOD ( ) const
inline

Returns the current level of detail index.

◆ GetEffectHandle()

Handle< EffectResourceTag > & Ult::DynamicModel::GetEffectHandle ( )
inline

Returns a handle to the render effect used on this model.

◆ GetIsVisible()

bool Ult::DynamicModel::GetIsVisible ( ) const
inline

Return whether or not this model is rendered

◆ GetModelHandle()

Handle< ModelResourceTag > & Ult::DynamicModel::GetModelHandle ( )
inline

Returns a handle to the model at the current level of detail (LOD).

◆ GetTransformation()

float * Ult::DynamicModel::GetTransformation ( )
inline

Returns the 4x4 matrix transform of this model as an array of floats.

◆ SetCurrentLOD()

void Ult::DynamicModel::SetCurrentLOD ( const int index)
inline

Set the current level of detail for this model, in range [0,ULT_MAX_LOD).

◆ SetEffectHandle()

void Ult::DynamicModel::SetEffectHandle ( Handle< EffectResourceTag > & handle)
inline

Sets the associated render effect to use.

◆ SetIsVisible()

void Ult::DynamicModel::SetIsVisible ( const bool val)
inline

Set whether or not this model should be rendered.

◆ SetModelHandle()

void Ult::DynamicModel::SetModelHandle ( Handle< ModelResourceTag > & handle)
inline

Sets the associated model we should use for the current level of detail.

◆ SetTransformation()

void Ult::DynamicModel::SetTransformation ( const Matrix4x4 & m)
inline

Sets the 4x4 transformation matrix of this model from the input.


The documentation for this class was generated from the following file: