ScummVM API documentation
hpl::cMesh Class Reference
Inheritance diagram for hpl::cMesh:
hpl::iResourceBase

Public Member Functions

 cMesh (const tString asName, cMaterialManager *apMaterialManager, cAnimationManager *apAnimationManager)
 
bool CreateFromFile (const tString asFile)
 
cSubMeshCreateSubMesh (const tString &asName)
 
cSubMeshGetSubMesh (unsigned int alIdx)
 
cSubMeshGetSubMeshName (const tString &asName)
 
int GetSubMeshNum ()
 
void SetSkeleton (cSkeleton *apSkeleton)
 
cSkeletonGetSkeleton ()
 
void AddAnimation (cAnimation *apAnimation)
 
cAnimationGetAnimation (int alIndex)
 
cAnimationGetAnimationFromName (const tString &asName)
 
int GetAnimationIndex (const tString &asName)
 
void ClearAnimations (bool abDeleteAll)
 
int GetAnimationNum ()
 
void SetupBones ()
 
cMeshJointCreatePhysicsJoint (ePhysicsJointType)
 
cMeshJointGetPhysicsJoint (int alIdx)
 
int GetPhysicsJointNum ()
 
iPhysicsJointCreateJointInWorld (const tString &sNamePrefix, cMeshJoint *apMeshJoint, iPhysicsBody *apParentBody, iPhysicsBody *apChildBody, const cMatrixf &a_mtxOffset, iPhysicsWorld *apWorld)
 
void CreateNodeBodies (iPhysicsBody **apRootBodyPtr, Common::Array< iPhysicsBody *> *apSubBodyVec, cMeshEntity *apEntity, iPhysicsWorld *apWorld, const cMatrixf &a_mtxTransform)
 
void CreateJointsAndBodies (Common::Array< iPhysicsBody *> *apBodyVec, cMeshEntity *apEntity, Common::Array< iPhysicsJoint *> *apJointVec, const cMatrixf &a_mtxOffset, iPhysicsWorld *apWorld)
 
bool HasSeveralBodies ()
 
cMeshColliderCreateCollider (eCollideShapeType aType)
 
cMeshColliderGetCollider (int alIdx)
 
int GetColliderNum ()
 
iCollideShapeCreateCollideShape (iPhysicsWorld *apWorld)
 
iCollideShapeCreateCollideShapeFromCollider (cMeshCollider *pCollider, iPhysicsWorld *apWorld)
 
cMeshLightCreateLight (eLight3DType aType)
 
cMeshLightGetLight (int alIdx)
 
int GetLightNum ()
 
iLight3DCreateLightInWorld (const tString &sNamePrefix, cMeshLight *apMeshLight, cMeshEntity *apMeshEntity, cWorld3D *apWorld)
 
cMeshBillboardCreateBillboard ()
 
cMeshBillboardGetBillboard (int alIdx)
 
int GetBillboardNum ()
 
cBillboardCreateBillboardInWorld (const tString &sNamePrefix, cMeshBillboard *apMeshBillboard, cMeshEntity *apMeshEntity, cWorld3D *apWorld)
 
cMeshBeamCreateBeam ()
 
cMeshBeamGetBeam (int alIdx)
 
int GetBeamNum ()
 
cBeamCreateBeamInWorld (const tString &sNamePrefix, cMeshBeam *apMeshBeam, cMeshEntity *apMeshEntity, cWorld3D *apWorld)
 
cMeshParticleSystemCreateParticleSystem ()
 
cMeshParticleSystemGetParticleSystem (int alIdx)
 
int GetParticleSystemNum ()
 
cParticleSystem3DCreateParticleSystemInWorld (const tString &sNamePrefix, cMeshParticleSystem *apMeshPS, cMeshEntity *apMeshEntity, cWorld3D *apWorld)
 
cMeshReferenceCreateReference ()
 
cMeshReferenceGetReference (int alIdx)
 
int GetReferenceNum ()
 
iEntity3DCreateReferenceInWorld (const tString &sNamePrefix, cMeshReference *apMeshRef, cMeshEntity *apMeshEntity, cWorld3D *apWorld, const cMatrixf &a_mtxOffset)
 
cMeshSoundEntityCreateSoundEntity ()
 
cMeshSoundEntityGetSoundEntity (int alIdx)
 
int GetSoundEntityNum ()
 
cSoundEntityCreateSoundEntityInWorld (const tString &sNamePrefix, cMeshSoundEntity *apMeshSound, cMeshEntity *apMeshEntity, cWorld3D *apWorld)
 
cNode3DGetRootNode ()
 
void AddNode (cNode3D *apNode)
 
int GetNodeNum ()
 
cNode3DGetNode (int alIdx)
 
bool reload ()
 
void unload ()
 
void destroy ()
 
- Public Member Functions inherited from hpl::iResourceBase
 iResourceBase (tString asName, unsigned long alPrio)
 
tString GetName ()
 
unsigned long GetHandle ()
 
void SetHandle (unsigned long alHandle)
 
tString GetFilePath ()
 
unsigned long GetTime ()
 
unsigned long GetPrio ()
 
unsigned long GetSize ()
 
void SetLogDestruction (bool abX)
 
unsigned int GetUserCount ()
 
void IncUserCount ()
 
void DecUserCount ()
 
bool HasUsers ()
 

Additional Inherited Members

- Static Public Member Functions inherited from hpl::iResourceBase
static bool GetLogCreateAndDelete ()
 
static void SetLogCreateAndDelete (bool abX)
 
- Protected Attributes inherited from hpl::iResourceBase
unsigned int mlPrio
 
unsigned long mlTime
 
unsigned long mlSize
 
unsigned int mlUserCount
 
unsigned long mlHandle
 
tString msName
 
tString msFilePath
 
bool mbLogDestruction
 
- Static Protected Attributes inherited from hpl::iResourceBase
static bool mbLogCreateAndDelete
 

Member Function Documentation

◆ reload()

bool hpl::cMesh::reload ( )
inlinevirtual

virtual bool Reload()=0;

Returns
true is reload was succesful, else false.

Implements hpl::iResourceBase.

◆ unload()

void hpl::cMesh::unload ( )
inlinevirtual

Free most the memory, save info to get started again.

Implements hpl::iResourceBase.

◆ destroy()

void hpl::cMesh::destroy ( )
inlinevirtual

Free all memory.

Implements hpl::iResourceBase.


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