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

Public Member Functions

 Cloth ()
 
 ~Cloth ()
 
bool Initialize (int gridSize, float mass, float springConst, float springLen, float damp)
 
void RecalculateMesh ()
 
void Shutdown ()
 
void UpdateSprings ()
 
stClothVertexGetVertices ()
 
int GetVertexSizeInBytes () const
 
int GetVertexStride () const
 
Ult::VertexDescriptorGetDescriptor ()
 
int GetGridSize () const
 
Ult::SpringMassGetMasses ()
 
int GetTotalMasses ()
 
Ult::SpringGetSprings ()
 
int GetTotalSprings ()
 

Constructor & Destructor Documentation

◆ Cloth()

Cloth::Cloth ( )
inline

◆ ~Cloth()

Cloth::~Cloth ( )
inline

Member Function Documentation

◆ GetDescriptor()

Ult::VertexDescriptor & Cloth::GetDescriptor ( )
inline

◆ GetGridSize()

int Cloth::GetGridSize ( ) const
inline

◆ GetMasses()

Ult::SpringMass * Cloth::GetMasses ( )
inline

◆ GetSprings()

Ult::Spring * Cloth::GetSprings ( )
inline

◆ GetTotalMasses()

int Cloth::GetTotalMasses ( )
inline

◆ GetTotalSprings()

int Cloth::GetTotalSprings ( )
inline

◆ GetVertexSizeInBytes()

int Cloth::GetVertexSizeInBytes ( ) const
inline

◆ GetVertexStride()

int Cloth::GetVertexStride ( ) const
inline

◆ GetVertices()

stClothVertex * Cloth::GetVertices ( )
inline

◆ Initialize()

bool Cloth::Initialize ( int gridSize,
float mass,
float springConst,
float springLen,
float damp )
inline

◆ RecalculateMesh()

void Cloth::RecalculateMesh ( )
inline

◆ Shutdown()

void Cloth::Shutdown ( )
inline

◆ UpdateSprings()

void Cloth::UpdateSprings ( )
inline

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