"L. Spiro Engine"
Public Member Functions | Protected Member Functions | Protected Attributes | Friends

lse::CMeshInstance Class Reference

A mesh instance. More...

#include <LSEMeshInstance.h>

Inheritance diagram for lse::CMeshInstance:
lse::CActor lse::CEntity

List of all members.

Public Member Functions

virtual LSUINT32 LSE_CALL EntityType () const
virtual LSVOID LSE_CALL Reset ()
LSE_INLINE const CAabb &LSE_CALL Aabb () const
LSE_INLINE const CSphere &LSE_CALL BoundingSphere () const
LSE_INLINE const CString *LSE_CALL GetName () const

Protected Member Functions

virtual LSBOOL LSE_CALL SetMesh (CIntermediateMeshInstance *_pimiSharedMesh)
virtual LSVOID LSE_CALL WorldDidChange () const

Protected Attributes

CIntermediateMeshInstance * m_pimiSharedMesh
CAabb m_aAabb
CSphere m_sBoundingSphere

Friends

class CModelInstance

Detailed Description

A mesh instance.

Class CMeshInstance Description: A mesh instance. CMeshInstance and CModelInstance are both actors. CModelInstance acts as the parent of a tree of CMeshInstance objects, each inheriting transforms from their parents up to the main parent CModelInstance object. Meshes contain multiple "render parts" and a shared pointer to the main mesh they reference.


Member Function Documentation

LSE_INLINE const CAabb &LSE_CALL lse::CMeshInstance::Aabb ( ) const

Gets the world AABB for this mesh.

Returns:
Returns the the world AABB for this mesh.
LSE_INLINE const CSphere &LSE_CALL lse::CMeshInstance::BoundingSphere ( ) const

Gets the world bounding sphere for this mesh.

Returns:
Returns the world bounding sphere for this mesh.
virtual LSUINT32 LSE_CALL lse::CMeshInstance::EntityType ( ) const [virtual]

Get the entity type.

Returns:
Returns the type mask for this entity.

Reimplemented from lse::CActor.

LSE_INLINE const CString *LSE_CALL lse::CMeshInstance::GetName ( ) const

Gets the name of the mesh, which is obtained via the shared mesh referenced by this mesh. If there is no shared mesh, this returns NULL.

Returns:
Returns a pointer to the name of the mesh or NULL if there is no such name.
virtual LSVOID LSE_CALL lse::CMeshInstance::Reset ( ) [virtual]

Resets everything to scratch.

virtual LSBOOL LSE_CALL lse::CMeshInstance::SetMesh ( CIntermediateMeshInstance *  _pimiSharedMesh) [protected, virtual]

Sets the shared mesh pointer for this mesh instance.

Parameters:
_pimiSharedMeshNew shared mesh pointer.
Returns:
Returns true if there are no memory problems setting the mesh pointer.
virtual LSVOID LSE_CALL lse::CMeshInstance::WorldDidChange ( ) const [protected, virtual]

Inform child classes that the world transform has changed.

Reimplemented from lse::CActor.


Member Data Documentation

CAabb lse::CMeshInstance::m_aAabb [mutable, protected]

The world-aligned AABB of this mesh instance.

CIntermediateMeshInstance* lse::CMeshInstance::m_pimiSharedMesh [protected]

Pointer to the shared mesh instance we reference.

CSphere lse::CMeshInstance::m_sBoundingSphere [mutable, protected]

The world-aligned bounding sphere.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator