"L. Spiro Engine"
|
An instance of the shared intemediate mesh data loaded from a file/stream. More...
#include <LSDIntermediateMeshInstance.h>
Public Member Functions | |
CIntermediateMeshInstance &LSE_CALL | operator= (const CIntermediateMeshInstance &_imiOther) |
LSSTD_ERRORS LSE_CALL | LoadFromStream (const lsstd::IStream &_sStream, CAllocator *_paAllocator, LSUINT32 _ui32Version) |
LSVOID LSE_CALL | SetAllocator (CAllocator *_paAllocator) |
LSVOID LSE_CALL | Reset () |
LSVOID LSE_CALL | Trash () |
const CString &LSE_CALL | GetName () const |
const CMatrix4x4 &LSE_CALL | GetTransform () const |
LSUINT32 LSE_CALL | GetMeshIndex () const |
LSUINT64 LSE_CALL | UniqueId () const |
LSUINT64 LSE_CALL | ParentUniqueId () const |
LSE_INLINE const CAabb &LSE_CALL | Aabb () const |
LSE_INLINE const CSphere &LSE_CALL | BoundingSphere () const |
Static Protected Member Functions | |
static LSBOOL LSE_CALL | ReadString (const lsstd::IStream &_sStream, CString &_sRet) |
Protected Attributes | |
CString | m_sName |
CMatrix4x4 | m_mTrans |
CMatrix4x4 | m_mLocalTrans |
LSUINT32 | m_ui32MeshIndex |
LSUINT64 | m_ui64Id |
LSUINT64 | m_ui64ParentId |
CAabb | m_aAabbBox |
CSphere | m_sBoundingSphere |
An instance of the shared intemediate mesh data loaded from a file/stream.
Class CIntermediateMeshInstance Description: An instance of the shared intemediate mesh data loaded from a file/stream. An instance simply contains a pointer to the mesh data it shares, a name, and a transform.
LSE_INLINE const CAabb &LSE_CALL lsd::CIntermediateMeshInstance::Aabb | ( | ) | const |
Gets the AABB for this instance, non-transformed.
LSE_INLINE const CSphere &LSE_CALL lsd::CIntermediateMeshInstance::BoundingSphere | ( | ) | const |
Gets the bounding sphere for this instance, non-transformed.
LSUINT32 LSE_CALL lsd::CIntermediateMeshInstance::GetMeshIndex | ( | ) | const |
Gets the index of this mesh instance.
const CString& LSE_CALL lsd::CIntermediateMeshInstance::GetName | ( | ) | const |
Gets the name of this mesh instance.
const CMatrix4x4& LSE_CALL lsd::CIntermediateMeshInstance::GetTransform | ( | ) | const |
Gets the matrix of this mesh instance.
LSSTD_ERRORS LSE_CALL lsd::CIntermediateMeshInstance::LoadFromStream | ( | const lsstd::IStream & | _sStream, |
CAllocator * | _paAllocator, | ||
LSUINT32 | _ui32Version | ||
) |
Load mesh instance data from a stream.
_sStream | The stream from which to load the mesh data. |
_paAllocator | The allocator to use for all data allocated by this object. |
_ui32Version | The file version number. |
CIntermediateMeshInstance& LSE_CALL lsd::CIntermediateMeshInstance::operator= | ( | const CIntermediateMeshInstance & | _imiOther | ) |
Copy operator.
_imiOther | The object to copy. |
LSUINT64 LSE_CALL lsd::CIntermediateMeshInstance::ParentUniqueId | ( | ) | const |
Gets the unique ID of this mesh's parent.
static LSBOOL LSE_CALL lsd::CIntermediateMeshInstance::ReadString | ( | const lsstd::IStream & | _sStream, |
CString & | _sRet | ||
) | [static, protected] |
Read a string from a stream.
_sStream | The stream from which to read a string. |
_sRet | The returned string. |
LSVOID LSE_CALL lsd::CIntermediateMeshInstance::Reset | ( | ) |
Reset all data.
LSVOID LSE_CALL lsd::CIntermediateMeshInstance::SetAllocator | ( | CAllocator * | _paAllocator | ) |
Set the allocator for this object. Can be done only once.
_paAllocator | The allocator to use for all data allocated by this object. |
LSVOID LSE_CALL lsd::CIntermediateMeshInstance::Trash | ( | ) |
Trash all data.
LSUINT64 LSE_CALL lsd::CIntermediateMeshInstance::UniqueId | ( | ) | const |
Gets the unique ID of this mesh instance.
CAabb lsd::CIntermediateMeshInstance::m_aAabbBox [protected] |
Our bounding box.
CMatrix4x4 lsd::CIntermediateMeshInstance::m_mLocalTrans [protected] |
Our local transform.
CMatrix4x4 lsd::CIntermediateMeshInstance::m_mTrans [protected] |
Our transform.
CSphere lsd::CIntermediateMeshInstance::m_sBoundingSphere [protected] |
Our bounding sphere.
CString lsd::CIntermediateMeshInstance::m_sName [protected] |
Our name.
LSUINT32 lsd::CIntermediateMeshInstance::m_ui32MeshIndex [protected] |
Index of the shared mesh.
LSUINT64 lsd::CIntermediateMeshInstance::m_ui64Id [protected] |
Our unique ID.
LSUINT64 lsd::CIntermediateMeshInstance::m_ui64ParentId [protected] |
Our parent ID.