"L. Spiro Engine"
|
A mesh instance. More...
#include <LSEMeshInstance.h>
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 |
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.
LSE_INLINE const CAabb &LSE_CALL lse::CMeshInstance::Aabb | ( | ) | const |
Gets the world AABB for this mesh.
LSE_INLINE const CSphere &LSE_CALL lse::CMeshInstance::BoundingSphere | ( | ) | const |
Gets the world bounding sphere for this mesh.
virtual LSUINT32 LSE_CALL lse::CMeshInstance::EntityType | ( | ) | const [virtual] |
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.
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.
_pimiSharedMesh | New shared 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.
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.