The IMesh resource object interface. More...

#include "murl_resource_i_mesh.h"

Inheritance diagram for Murl::Resource::IMesh:

Classes

struct  Iff
 IFF file specific structs. More...
 
struct  Raw
 Raw data structs. More...
 

Public Member Functions

virtual IObjectGetObjectInterface ()=0
 Get the mutable Resource::IObject interface. More...
 
virtual const IObjectGetObjectInterface () const =0
 Get the constant Resource::IObject interface. More...
 
virtual UInt32 GetNumberOfBones () const =0
 Get the number of bones affecting this mesh. More...
 
virtual const VectorGetBoundingBoxMin () const =0
 Get the minimum vector of the axis-aligned bounding box. More...
 
virtual const VectorGetBoundingBoxMax () const =0
 Get the maximum vector of the axis-aligned bounding box. More...
 
virtual UInt32 GetNumberOfVertexBuffers () const =0
 Get the total number of vertex buffers present. More...
 
virtual UInt32 GetNumberOfVertexBufferVertices (UInt32 vertexBufferIndex) const =0
 Get the number of vertices stored in the vertex buffer at a given index. More...
 
virtual UInt32 GetNumberOfVertexBufferAttributes (UInt32 vertexBufferIndex) const =0
 Get the number of attributes defined for the vertex buffer at a given index. More...
 
virtual const void * GetVertexBufferData (UInt32 vertexBufferIndex) const =0
 Get the raw buffer data of the vertex buffer at a given index. More...
 
virtual IEnums::BufferAccessMode GetVertexBufferAccessMode (UInt32 vertexBufferIndex) const =0
 Get the access mode of the vertex buffer at a given index. More...
 
virtual UInt32 GetVertexBufferByteStride (UInt32 vertexBufferIndex) const =0
 Get the byte stride of the vertex buffer at a given index. More...
 
virtual IEnums::AttributeItem GetVertexBufferAttributeItem (UInt32 vertexBufferIndex, UInt32 attributeIndex) const =0
 Get the predefined item of a vertex buffer attribute. More...
 
virtual IEnums::AttributeType GetVertexBufferAttributeType (UInt32 vertexBufferIndex, UInt32 attributeIndex) const =0
 Get the data type of a vertex buffer attribute. More...
 
virtual UInt32 GetVertexBufferAttributeByteOffset (UInt32 vertexBufferIndex, UInt32 attributeIndex) const =0
 Get the byte offset of a vertex buffer attribute. More...
 
virtual SInt32 GetVertexBufferSlot (UInt32 vertexBufferIndex) const =0
 Get the slot index to which a vertex buffer gets assigned. More...
 
virtual UInt32 GetVertexBufferUnit (UInt32 vertexBufferIndex) const =0
 Get the unit index to which a vertex buffer gets assigned. More...
 
virtual UInt32 GetNumberOfIndexBuffers () const =0
 Get the total number of index buffers present. More...
 
virtual UInt32 GetNumberOfIndexBufferIndices (UInt32 indexBufferIndex) const =0
 Get the number of indices stored in the index buffer at a given index. More...
 
virtual UInt32 GetNumberOfIndexBufferSegments (UInt32 indexBufferIndex) const =0
 Get the number of segments stored in the index buffer at a given index. More...
 
virtual const void * GetIndexBufferData (UInt32 indexBufferIndex) const =0
 Get the raw buffer data of the index buffer at a given index. More...
 
virtual const void * GetIndexBufferAdjacentVertices (UInt32 indexBufferIndex) const =0
 Get the raw adjacent vertex data of the index buffer at a given index. More...
 
virtual const UInt32GetIndexBufferAdjacentIndices (UInt32 indexBufferIndex) const =0
 Get the raw adjacent index data of the index buffer at a given index. More...
 
virtual const UInt32GetIndexBufferSegments (UInt32 indexBufferIndex) const =0
 Get the raw segment data of the index buffer at a given index. More...
 
virtual IEnums::BufferAccessMode GetIndexBufferAccessMode (UInt32 indexBufferIndex) const =0
 Get the access mode of the index buffer at a given index. More...
 
virtual IEnums::IndexType GetIndexBufferIndexType (UInt32 indexBufferIndex) const =0
 Get the data type of the index buffer at a given index. More...
 
virtual IEnums::PrimitiveType GetIndexBufferPrimitiveType (UInt32 indexBufferIndex) const =0
 Get the primitive type of the index buffer at a given index. More...
 
virtual SInt32 GetIndexBufferVerticesSlot (UInt32 indexBufferIndex) const =0
 Get the slot of vertices used to render the index buffer at a given index. More...
 
virtual SInt32 GetIndexBufferMaterialSlot (UInt32 indexBufferIndex) const =0
 Get the slot index for the material used to render the index buffer at a given index. More...
 
virtual SInt32 GetIndexBufferParametersSlot (UInt32 indexBufferIndex) const =0
 Get the slot index for the parameters used to render the index buffer at a given index. More...
 
virtual SInt32 GetIndexBufferTextureSlot (UInt32 indexBufferIndex, UInt32 unit) const =0
 Get the slot index for the texture at a given unit used to render the index buffer at a given index. More...
 
virtual UInt32 GetNumberOfMorphBuffers (UInt32 vertexBufferIndex) const =0
 Get the total number of morph buffers present for a given vertex buffer. More...
 
virtual UInt32 GetNumberOfMorphBufferVertices (UInt32 vertexBufferIndex, UInt32 morphBufferIndex) const =0
 Get the number of morphed vertices for a given vertex and morph buffer. More...
 
virtual UInt32 GetNumberOfMorphBufferAttributes (UInt32 vertexBufferIndex, UInt32 morphBufferIndex) const =0
 Get the number of morphed attributes for a given vertex and morph buffer. More...
 
virtual const void * GetMorphBufferVertexData (UInt32 vertexBufferIndex, UInt32 morphBufferIndex) const =0
 Get the raw vertex morph data for a given vertex and morph buffer. More...
 
virtual const void * GetMorphBufferIndexData (UInt32 vertexBufferIndex, UInt32 morphBufferIndex) const =0
 Get the raw index morph data for a given vertex and morph buffer. More...
 
virtual UInt32 GetMorphBufferByteStride (UInt32 vertexBufferIndex, UInt32 morphBufferIndex) const =0
 Get the byte stride for a given vertex and morph buffer. More...
 
virtual IEnums::AttributeItem GetMorphBufferAttributeItem (UInt32 vertexBufferIndex, UInt32 morphBufferIndex, UInt32 attributeIndex) const =0
 Get the predefined morph attribute item for a given vertex and morph buffer. More...
 
virtual IEnums::AttributeType GetMorphBufferAttributeType (UInt32 vertexBufferIndex, UInt32 morphBufferIndex, UInt32 attributeIndex) const =0
 Get the morph attribute data type for a given vertex and morph buffer. More...
 
virtual UInt32 GetMorphBufferAttributeByteOffset (UInt32 vertexBufferIndex, UInt32 morphBufferIndex, UInt32 attributeIndex) const =0
 Get the morph attribute byte offset for a given vertex and morph buffer. More...
 
virtual IEnums::IndexType GetMorphBufferIndexType (UInt32 vertexBufferIndex, UInt32 morphBufferIndex) const =0
 Get the index data type for a given vertex and morph buffer. More...
 
virtual UInt32 GetNumberOfDeformBuffers (UInt32 vertexBufferIndex) const =0
 Get the total number of deform buffers present for a given vertex buffer. More...
 
virtual UInt32 GetNumberOfDeformEntries (UInt32 vertexBufferIndex, UInt32 deformBufferIndex) const =0
 Get the number of entries for a given vertex and deform buffer. More...
 
virtual UInt32 GetNumberOfDeformBufferVertices (UInt32 vertexBufferIndex, UInt32 deformBufferIndex, UInt32 deformEntryIndex) const =0
 Get the number of deformed vertices for a given vertex buffer, deform buffer and deform entry. More...
 
virtual UInt32 GetNumberOfDeformBufferAttributes (UInt32 vertexBufferIndex, UInt32 deformBufferIndex) const =0
 Get the number of deformed attributes for a given vertex and deform buffer. More...
 
virtual const void * GetDeformBufferVertexData (UInt32 vertexBufferIndex, UInt32 deformBufferIndex, UInt32 deformEntryIndex) const =0
 Get the raw vertex deform data for a given vertex buffer, deform buffer and deform entry. More...
 
virtual const void * GetDeformBufferIndexData (UInt32 vertexBufferIndex, UInt32 deformBufferIndex, UInt32 deformEntryIndex) const =0
 Get the raw index deform data for a given vertex buffer, deform buffer and deform entry. More...
 
virtual UInt32 GetDeformBufferByteStride (UInt32 vertexBufferIndex, UInt32 deformBufferIndex) const =0
 Get the byte stride for a given vertex and deform buffer. More...
 
virtual IEnums::AttributeItem GetDeformBufferAttributeItem (UInt32 vertexBufferIndex, UInt32 deformBufferIndex, UInt32 attributeIndex) const =0
 Get the predefined deform attribute item for a given vertex and deform buffer. More...
 
virtual IEnums::AttributeType GetDeformBufferAttributeType (UInt32 vertexBufferIndex, UInt32 deformBufferIndex, UInt32 attributeIndex) const =0
 Get the deform attribute data type for a given vertex and deform buffer. More...
 
virtual UInt32 GetDeformBufferAttributeByteOffset (UInt32 vertexBufferIndex, UInt32 deformBufferIndex, UInt32 attributeIndex) const =0
 Get the deform attribute byte offset for a given vertex and deform buffer. More...
 
virtual IEnums::IndexType GetDeformBufferIndexType (UInt32 vertexBufferIndex, UInt32 deformBufferIndex) const =0
 Get the index data type for a given vertex and deform buffer. More...
 
virtual UInt32 GetNumberOfCollisionSurfaces () const =0
 Get the total number of collision surfaces present. More...
 
virtual SInt32 GetCollisionSurfaceSlot (UInt32 surfaceIndex) const =0
 Get the surface slot used for a given collision surface. More...
 
virtual UInt32 GetNumberOfBspPlanes () const =0
 Get the number of BSP splitting planes present. More...
 
virtual UInt32 GetNumberOfBspNodes () const =0
 Get the number of BSP nodes present. More...
 
virtual UInt32 GetNumberOfBspLeaves () const =0
 Get the number of BSP leaves present. More...
 
virtual UInt32 GetNumberOfBspFaces () const =0
 Get the number of BSP faces present. More...
 
virtual UInt32 GetNumberOfBspSegments () const =0
 Get the number of BSP segments present. More...
 
virtual UInt32 GetNumberOfBspClusters () const =0
 Get the number of BSP clusters present. More...
 
virtual UInt32 GetBspClustersByteSize () const =0
 Get the byte size of a BSP cluster. More...
 
virtual const Raw::BspPlaneGetBspPlanes () const =0
 Get the raw BSP splitting plane data. More...
 
virtual const Raw::BspNodeGetBspNodes () const =0
 Get the raw BSP node data. More...
 
virtual const Raw::BspLeafGetBspLeaves () const =0
 Get the raw BSP leaf data. More...
 
virtual const Raw::BspFaceGetBspFaces () const =0
 Get the raw BSP face data. More...
 
virtual const Raw::BspSegmentGetBspSegments () const =0
 Get the raw BSP segment data. More...
 
virtual const UInt8GetBspClusters () const =0
 Get the raw BSP cluster data. More...
 
virtual UInt32 GetNumberOfBoundingNodes () const =0
 Get the number of bounding volume hierarchy nodes present. More...
 
virtual UInt32 GetNumberOfBoundingLeaves () const =0
 Get the number of bounding volume hierarchy leaves present. More...
 
virtual UInt32 GetNumberOfBoundingVertices () const =0
 Get the number of bounding volume hierarchy vertices present. More...
 
virtual UInt32 GetBoundingVerticesByteSize () const =0
 Get the total byte size of the bounding volume hierarchy vertices. More...
 
virtual const Raw::BoundingNodeGetBoundingNodes () const =0
 Get the raw bounding volume hierarchy node data. More...
 
virtual const Raw::BoundingLeafGetBoundingLeaves () const =0
 Get the raw bounding volume hierarchy leaf data. More...
 
virtual const Raw::BoundingVertexGetBoundingVertices () const =0
 Get the raw bounding volume hierarchy vertex data. More...
 

Detailed Description

The IMesh resource object interface.

Member Function Documentation

◆ GetObjectInterface() [1/2]

virtual IObject* Murl::Resource::IMesh::GetObjectInterface ( )
pure virtual

Get the mutable Resource::IObject interface.

Returns
The IObject interface.

◆ GetObjectInterface() [2/2]

virtual const IObject* Murl::Resource::IMesh::GetObjectInterface ( ) const
pure virtual

Get the constant Resource::IObject interface.

Returns
The IObject interface.

◆ GetNumberOfBones()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfBones ( ) const
pure virtual

Get the number of bones affecting this mesh.

Returns
The number of bones.

◆ GetBoundingBoxMin()

virtual const Vector& Murl::Resource::IMesh::GetBoundingBoxMin ( ) const
pure virtual

Get the minimum vector of the axis-aligned bounding box.

Returns
The AABB minimum vector.

◆ GetBoundingBoxMax()

virtual const Vector& Murl::Resource::IMesh::GetBoundingBoxMax ( ) const
pure virtual

Get the maximum vector of the axis-aligned bounding box.

Returns
The AABB maximum vector.

◆ GetNumberOfVertexBuffers()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfVertexBuffers ( ) const
pure virtual

Get the total number of vertex buffers present.

Returns
The number of vertex buffers present.

◆ GetNumberOfVertexBufferVertices()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfVertexBufferVertices ( UInt32  vertexBufferIndex) const
pure virtual

Get the number of vertices stored in the vertex buffer at a given index.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
Returns
The number of vertices.

◆ GetNumberOfVertexBufferAttributes()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfVertexBufferAttributes ( UInt32  vertexBufferIndex) const
pure virtual

Get the number of attributes defined for the vertex buffer at a given index.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
Returns
The number of attributes.

◆ GetVertexBufferData()

virtual const void* Murl::Resource::IMesh::GetVertexBufferData ( UInt32  vertexBufferIndex) const
pure virtual

Get the raw buffer data of the vertex buffer at a given index.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
Returns
A pointer to the raw data, or null if index is out of range.

◆ GetVertexBufferAccessMode()

virtual IEnums::BufferAccessMode Murl::Resource::IMesh::GetVertexBufferAccessMode ( UInt32  vertexBufferIndex) const
pure virtual

Get the access mode of the vertex buffer at a given index.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
Returns
The buffer access mode.

◆ GetVertexBufferByteStride()

virtual UInt32 Murl::Resource::IMesh::GetVertexBufferByteStride ( UInt32  vertexBufferIndex) const
pure virtual

Get the byte stride of the vertex buffer at a given index.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
Returns
The byte stride.

◆ GetVertexBufferAttributeItem()

virtual IEnums::AttributeItem Murl::Resource::IMesh::GetVertexBufferAttributeItem ( UInt32  vertexBufferIndex,
UInt32  attributeIndex 
) const
pure virtual

Get the predefined item of a vertex buffer attribute.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
attributeIndexThe index of the attribute, from 0 to GetNumberOfVertexBufferAttributes()-1.
Returns
The attribute item.

◆ GetVertexBufferAttributeType()

virtual IEnums::AttributeType Murl::Resource::IMesh::GetVertexBufferAttributeType ( UInt32  vertexBufferIndex,
UInt32  attributeIndex 
) const
pure virtual

Get the data type of a vertex buffer attribute.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
attributeIndexThe index of the attribute, from 0 to GetNumberOfVertexBufferAttributes()-1.
Returns
The attribute type.

◆ GetVertexBufferAttributeByteOffset()

virtual UInt32 Murl::Resource::IMesh::GetVertexBufferAttributeByteOffset ( UInt32  vertexBufferIndex,
UInt32  attributeIndex 
) const
pure virtual

Get the byte offset of a vertex buffer attribute.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
attributeIndexThe index of the attribute, from 0 to GetNumberOfVertexBufferAttributes()-1.
Returns
The byte offset.

◆ GetVertexBufferSlot()

virtual SInt32 Murl::Resource::IMesh::GetVertexBufferSlot ( UInt32  vertexBufferIndex) const
pure virtual

Get the slot index to which a vertex buffer gets assigned.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
Returns
The slot index.

◆ GetVertexBufferUnit()

virtual UInt32 Murl::Resource::IMesh::GetVertexBufferUnit ( UInt32  vertexBufferIndex) const
pure virtual

Get the unit index to which a vertex buffer gets assigned.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
Returns
The unit index.

◆ GetNumberOfIndexBuffers()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfIndexBuffers ( ) const
pure virtual

Get the total number of index buffers present.

Returns
The number of index buffers present.

◆ GetNumberOfIndexBufferIndices()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfIndexBufferIndices ( UInt32  indexBufferIndex) const
pure virtual

Get the number of indices stored in the index buffer at a given index.

Parameters
indexBufferIndexThe index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1.
Returns
The number of indices.

◆ GetNumberOfIndexBufferSegments()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfIndexBufferSegments ( UInt32  indexBufferIndex) const
pure virtual

Get the number of segments stored in the index buffer at a given index.

Parameters
indexBufferIndexThe index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1.
Returns
The number of segments.

◆ GetIndexBufferData()

virtual const void* Murl::Resource::IMesh::GetIndexBufferData ( UInt32  indexBufferIndex) const
pure virtual

Get the raw buffer data of the index buffer at a given index.

Parameters
indexBufferIndexThe index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1.
Returns
A pointer to the raw data, or null if index is out of range.

◆ GetIndexBufferAdjacentVertices()

virtual const void* Murl::Resource::IMesh::GetIndexBufferAdjacentVertices ( UInt32  indexBufferIndex) const
pure virtual

Get the raw adjacent vertex data of the index buffer at a given index.

Parameters
indexBufferIndexThe index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1.
Returns
A pointer to the raw data, or null if index is out of range.

◆ GetIndexBufferAdjacentIndices()

virtual const UInt32* Murl::Resource::IMesh::GetIndexBufferAdjacentIndices ( UInt32  indexBufferIndex) const
pure virtual

Get the raw adjacent index data of the index buffer at a given index.

Parameters
indexBufferIndexThe index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1.
Returns
A pointer to the raw data, or null if index is out of range.

◆ GetIndexBufferSegments()

virtual const UInt32* Murl::Resource::IMesh::GetIndexBufferSegments ( UInt32  indexBufferIndex) const
pure virtual

Get the raw segment data of the index buffer at a given index.

Parameters
indexBufferIndexThe index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1.
Returns
A pointer to the raw data, or null if index is out of range.

◆ GetIndexBufferAccessMode()

virtual IEnums::BufferAccessMode Murl::Resource::IMesh::GetIndexBufferAccessMode ( UInt32  indexBufferIndex) const
pure virtual

Get the access mode of the index buffer at a given index.

Parameters
indexBufferIndexThe index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1.
Returns
The buffer access mode.

◆ GetIndexBufferIndexType()

virtual IEnums::IndexType Murl::Resource::IMesh::GetIndexBufferIndexType ( UInt32  indexBufferIndex) const
pure virtual

Get the data type of the index buffer at a given index.

Parameters
indexBufferIndexThe index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1.
Returns
The data type.

◆ GetIndexBufferPrimitiveType()

virtual IEnums::PrimitiveType Murl::Resource::IMesh::GetIndexBufferPrimitiveType ( UInt32  indexBufferIndex) const
pure virtual

Get the primitive type of the index buffer at a given index.

Parameters
indexBufferIndexThe index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1.
Returns
The primitive type.

◆ GetIndexBufferVerticesSlot()

virtual SInt32 Murl::Resource::IMesh::GetIndexBufferVerticesSlot ( UInt32  indexBufferIndex) const
pure virtual

Get the slot of vertices used to render the index buffer at a given index.

Parameters
indexBufferIndexThe index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1.
Returns
The vertices' slot.

◆ GetIndexBufferMaterialSlot()

virtual SInt32 Murl::Resource::IMesh::GetIndexBufferMaterialSlot ( UInt32  indexBufferIndex) const
pure virtual

Get the slot index for the material used to render the index buffer at a given index.

Parameters
indexBufferIndexThe index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1.
Returns
The material slot.

◆ GetIndexBufferParametersSlot()

virtual SInt32 Murl::Resource::IMesh::GetIndexBufferParametersSlot ( UInt32  indexBufferIndex) const
pure virtual

Get the slot index for the parameters used to render the index buffer at a given index.

Parameters
indexBufferIndexThe index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1.
Returns
The parameters slot.

◆ GetIndexBufferTextureSlot()

virtual SInt32 Murl::Resource::IMesh::GetIndexBufferTextureSlot ( UInt32  indexBufferIndex,
UInt32  unit 
) const
pure virtual

Get the slot index for the texture at a given unit used to render the index buffer at a given index.

Parameters
indexBufferIndexThe index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1.
unitThe texture unit, in the range from 0 to IEnums::NUM_TEXTURE_UNITS.
Returns
The texture slot.

◆ GetNumberOfMorphBuffers()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfMorphBuffers ( UInt32  vertexBufferIndex) const
pure virtual

Get the total number of morph buffers present for a given vertex buffer.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
Returns
The number of morph buffers present.

◆ GetNumberOfMorphBufferVertices()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfMorphBufferVertices ( UInt32  vertexBufferIndex,
UInt32  morphBufferIndex 
) const
pure virtual

Get the number of morphed vertices for a given vertex and morph buffer.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
morphBufferIndexThe index of the morph buffer, from 0 to GetNumberOfMorphBuffers()-1.
Returns
The number of morphed vertices.

◆ GetNumberOfMorphBufferAttributes()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfMorphBufferAttributes ( UInt32  vertexBufferIndex,
UInt32  morphBufferIndex 
) const
pure virtual

Get the number of morphed attributes for a given vertex and morph buffer.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
morphBufferIndexThe index of the morph buffer, from 0 to GetNumberOfMorphBuffers()-1.
Returns
The number of morphed attributes.

◆ GetMorphBufferVertexData()

virtual const void* Murl::Resource::IMesh::GetMorphBufferVertexData ( UInt32  vertexBufferIndex,
UInt32  morphBufferIndex 
) const
pure virtual

Get the raw vertex morph data for a given vertex and morph buffer.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
morphBufferIndexThe index of the morph buffer, from 0 to GetNumberOfMorphBuffers()-1.
Returns
A pointer to the raw data, or null if an index is out of range.

◆ GetMorphBufferIndexData()

virtual const void* Murl::Resource::IMesh::GetMorphBufferIndexData ( UInt32  vertexBufferIndex,
UInt32  morphBufferIndex 
) const
pure virtual

Get the raw index morph data for a given vertex and morph buffer.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
morphBufferIndexThe index of the morph buffer, from 0 to GetNumberOfMorphBuffers()-1.
Returns
A pointer to the raw data, or null if an index is out of range.

◆ GetMorphBufferByteStride()

virtual UInt32 Murl::Resource::IMesh::GetMorphBufferByteStride ( UInt32  vertexBufferIndex,
UInt32  morphBufferIndex 
) const
pure virtual

Get the byte stride for a given vertex and morph buffer.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
morphBufferIndexThe index of the morph buffer, from 0 to GetNumberOfMorphBuffers()-1.
Returns
The byte stride.

◆ GetMorphBufferAttributeItem()

virtual IEnums::AttributeItem Murl::Resource::IMesh::GetMorphBufferAttributeItem ( UInt32  vertexBufferIndex,
UInt32  morphBufferIndex,
UInt32  attributeIndex 
) const
pure virtual

Get the predefined morph attribute item for a given vertex and morph buffer.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
morphBufferIndexThe index of the morph buffer, from 0 to GetNumberOfMorphBuffers()-1.
attributeIndexThe index of the attribute, from 0 to GetNumberOfMorphBufferAttributes()-1.
Returns
The attribute item.

◆ GetMorphBufferAttributeType()

virtual IEnums::AttributeType Murl::Resource::IMesh::GetMorphBufferAttributeType ( UInt32  vertexBufferIndex,
UInt32  morphBufferIndex,
UInt32  attributeIndex 
) const
pure virtual

Get the morph attribute data type for a given vertex and morph buffer.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
morphBufferIndexThe index of the morph buffer, from 0 to GetNumberOfMorphBuffers()-1.
attributeIndexThe index of the attribute, from 0 to GetNumberOfMorphBufferAttributes()-1.
Returns
The attribute type.

◆ GetMorphBufferAttributeByteOffset()

virtual UInt32 Murl::Resource::IMesh::GetMorphBufferAttributeByteOffset ( UInt32  vertexBufferIndex,
UInt32  morphBufferIndex,
UInt32  attributeIndex 
) const
pure virtual

Get the morph attribute byte offset for a given vertex and morph buffer.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
morphBufferIndexThe index of the morph buffer, from 0 to GetNumberOfMorphBuffers()-1.
attributeIndexThe index of the attribute, from 0 to GetNumberOfMorphBufferAttributes()-1.
Returns
The byte offset.

◆ GetMorphBufferIndexType()

virtual IEnums::IndexType Murl::Resource::IMesh::GetMorphBufferIndexType ( UInt32  vertexBufferIndex,
UInt32  morphBufferIndex 
) const
pure virtual

Get the index data type for a given vertex and morph buffer.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
morphBufferIndexThe index of the morph buffer, from 0 to GetNumberOfMorphBuffers()-1.
Returns
The data type.

◆ GetNumberOfDeformBuffers()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfDeformBuffers ( UInt32  vertexBufferIndex) const
pure virtual

Get the total number of deform buffers present for a given vertex buffer.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
Returns
The number of deform buffers present.

◆ GetNumberOfDeformEntries()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfDeformEntries ( UInt32  vertexBufferIndex,
UInt32  deformBufferIndex 
) const
pure virtual

Get the number of entries for a given vertex and deform buffer.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
deformBufferIndexThe index of the deform buffer, from 0 to GetNumberOfDeformBuffers()-1.
Returns
The number of entries.

◆ GetNumberOfDeformBufferVertices()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfDeformBufferVertices ( UInt32  vertexBufferIndex,
UInt32  deformBufferIndex,
UInt32  deformEntryIndex 
) const
pure virtual

Get the number of deformed vertices for a given vertex buffer, deform buffer and deform entry.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
deformBufferIndexThe index of the deform buffer, from 0 to GetNumberOfDeformBuffers()-1.
deformEntryIndexThe index of the deform entry, from 0 to GetNumberOfDeformEntries()-1.
Returns
The number of deformed vertices.

◆ GetNumberOfDeformBufferAttributes()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfDeformBufferAttributes ( UInt32  vertexBufferIndex,
UInt32  deformBufferIndex 
) const
pure virtual

Get the number of deformed attributes for a given vertex and deform buffer.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
deformBufferIndexThe index of the morph buffer, from 0 to GetNumberOfDeformBuffers()-1.
Returns
The number of deformed attributes.

◆ GetDeformBufferVertexData()

virtual const void* Murl::Resource::IMesh::GetDeformBufferVertexData ( UInt32  vertexBufferIndex,
UInt32  deformBufferIndex,
UInt32  deformEntryIndex 
) const
pure virtual

Get the raw vertex deform data for a given vertex buffer, deform buffer and deform entry.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
deformBufferIndexThe index of the deform buffer, from 0 to GetNumberOfDeformBuffers()-1.
deformEntryIndexThe index of the deform entry, from 0 to GetNumberOfDeformEntries()-1.
Returns
A pointer to the raw data, or null if an index is out of range.

◆ GetDeformBufferIndexData()

virtual const void* Murl::Resource::IMesh::GetDeformBufferIndexData ( UInt32  vertexBufferIndex,
UInt32  deformBufferIndex,
UInt32  deformEntryIndex 
) const
pure virtual

Get the raw index deform data for a given vertex buffer, deform buffer and deform entry.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
deformBufferIndexThe index of the deform buffer, from 0 to GetNumberOfDeformBuffers()-1.
deformEntryIndexThe index of the deform entry, from 0 to GetNumberOfDeformEntries()-1.
Returns
A pointer to the raw data, or null if an index is out of range.

◆ GetDeformBufferByteStride()

virtual UInt32 Murl::Resource::IMesh::GetDeformBufferByteStride ( UInt32  vertexBufferIndex,
UInt32  deformBufferIndex 
) const
pure virtual

Get the byte stride for a given vertex and deform buffer.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
deformBufferIndexThe index of the deform buffer, from 0 to GetNumberOfDeformBuffers()-1.
Returns
The byte stride.

◆ GetDeformBufferAttributeItem()

virtual IEnums::AttributeItem Murl::Resource::IMesh::GetDeformBufferAttributeItem ( UInt32  vertexBufferIndex,
UInt32  deformBufferIndex,
UInt32  attributeIndex 
) const
pure virtual

Get the predefined deform attribute item for a given vertex and deform buffer.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
deformBufferIndexThe index of the deform buffer, from 0 to GetNumberOfDeformBuffers()-1.
attributeIndexThe index of the attribute, from 0 to GetNumberOfDeformBufferAttributes()-1.
Returns
The attribute item.

◆ GetDeformBufferAttributeType()

virtual IEnums::AttributeType Murl::Resource::IMesh::GetDeformBufferAttributeType ( UInt32  vertexBufferIndex,
UInt32  deformBufferIndex,
UInt32  attributeIndex 
) const
pure virtual

Get the deform attribute data type for a given vertex and deform buffer.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
deformBufferIndexThe index of the deform buffer, from 0 to GetNumberOfDeformBuffers()-1.
attributeIndexThe index of the attribute, from 0 to GetNumberOfDeformBufferAttributes()-1.
Returns
The attribute type.

◆ GetDeformBufferAttributeByteOffset()

virtual UInt32 Murl::Resource::IMesh::GetDeformBufferAttributeByteOffset ( UInt32  vertexBufferIndex,
UInt32  deformBufferIndex,
UInt32  attributeIndex 
) const
pure virtual

Get the deform attribute byte offset for a given vertex and deform buffer.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
deformBufferIndexThe index of the deform buffer, from 0 to GetNumberOfDeformBuffers()-1.
attributeIndexThe index of the attribute, from 0 to GetNumberOfDeformBufferAttributes()-1.
Returns
The byte offset.

◆ GetDeformBufferIndexType()

virtual IEnums::IndexType Murl::Resource::IMesh::GetDeformBufferIndexType ( UInt32  vertexBufferIndex,
UInt32  deformBufferIndex 
) const
pure virtual

Get the index data type for a given vertex and deform buffer.

Parameters
vertexBufferIndexThe index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1.
deformBufferIndexThe index of the deform buffer, from 0 to GetNumberOfDeformBuffers()-1.
Returns
The data type.

◆ GetNumberOfCollisionSurfaces()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfCollisionSurfaces ( ) const
pure virtual

Get the total number of collision surfaces present.

Returns
The number of collision surfaces.

◆ GetCollisionSurfaceSlot()

virtual SInt32 Murl::Resource::IMesh::GetCollisionSurfaceSlot ( UInt32  surfaceIndex) const
pure virtual

Get the surface slot used for a given collision surface.

Parameters
surfaceIndexThe index of the surface, from 0 to GetNumberOfCollisionSurfaces()-1.
Returns
The surface slot.

◆ GetNumberOfBspPlanes()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfBspPlanes ( ) const
pure virtual

Get the number of BSP splitting planes present.

Returns
The number of planes.

◆ GetNumberOfBspNodes()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfBspNodes ( ) const
pure virtual

Get the number of BSP nodes present.

Returns
The number of nodes.

◆ GetNumberOfBspLeaves()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfBspLeaves ( ) const
pure virtual

Get the number of BSP leaves present.

Returns
The number of leaves.

◆ GetNumberOfBspFaces()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfBspFaces ( ) const
pure virtual

Get the number of BSP faces present.

Returns
The number of faces.

◆ GetNumberOfBspSegments()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfBspSegments ( ) const
pure virtual

Get the number of BSP segments present.

Returns
The number of segments.

◆ GetNumberOfBspClusters()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfBspClusters ( ) const
pure virtual

Get the number of BSP clusters present.

Returns
The number of clusters.

◆ GetBspClustersByteSize()

virtual UInt32 Murl::Resource::IMesh::GetBspClustersByteSize ( ) const
pure virtual

Get the byte size of a BSP cluster.

Returns
The byte size.

◆ GetBspPlanes()

virtual const Raw::BspPlane* Murl::Resource::IMesh::GetBspPlanes ( ) const
pure virtual

Get the raw BSP splitting plane data.

Returns
A pointer to the raw data, or null if not present.

◆ GetBspNodes()

virtual const Raw::BspNode* Murl::Resource::IMesh::GetBspNodes ( ) const
pure virtual

Get the raw BSP node data.

Returns
A pointer to the raw data, or null if not present.

◆ GetBspLeaves()

virtual const Raw::BspLeaf* Murl::Resource::IMesh::GetBspLeaves ( ) const
pure virtual

Get the raw BSP leaf data.

Returns
A pointer to the raw data, or null if not present.

◆ GetBspFaces()

virtual const Raw::BspFace* Murl::Resource::IMesh::GetBspFaces ( ) const
pure virtual

Get the raw BSP face data.

Returns
A pointer to the raw data, or null if not present.

◆ GetBspSegments()

virtual const Raw::BspSegment* Murl::Resource::IMesh::GetBspSegments ( ) const
pure virtual

Get the raw BSP segment data.

Returns
A pointer to the raw data, or null if not present.

◆ GetBspClusters()

virtual const UInt8* Murl::Resource::IMesh::GetBspClusters ( ) const
pure virtual

Get the raw BSP cluster data.

Returns
A pointer to the raw data, or null if not present.

◆ GetNumberOfBoundingNodes()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfBoundingNodes ( ) const
pure virtual

Get the number of bounding volume hierarchy nodes present.

Returns
The number of nodes.

◆ GetNumberOfBoundingLeaves()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfBoundingLeaves ( ) const
pure virtual

Get the number of bounding volume hierarchy leaves present.

Returns
The number of leaves.

◆ GetNumberOfBoundingVertices()

virtual UInt32 Murl::Resource::IMesh::GetNumberOfBoundingVertices ( ) const
pure virtual

Get the number of bounding volume hierarchy vertices present.

Returns
The number of vertices.

◆ GetBoundingVerticesByteSize()

virtual UInt32 Murl::Resource::IMesh::GetBoundingVerticesByteSize ( ) const
pure virtual

Get the total byte size of the bounding volume hierarchy vertices.

Returns
The byte size.

◆ GetBoundingNodes()

virtual const Raw::BoundingNode* Murl::Resource::IMesh::GetBoundingNodes ( ) const
pure virtual

Get the raw bounding volume hierarchy node data.

Returns
A pointer to the raw data, or null if not present.

◆ GetBoundingLeaves()

virtual const Raw::BoundingLeaf* Murl::Resource::IMesh::GetBoundingLeaves ( ) const
pure virtual

Get the raw bounding volume hierarchy leaf data.

Returns
A pointer to the raw data, or null if not present.

◆ GetBoundingVertices()

virtual const Raw::BoundingVertex* Murl::Resource::IMesh::GetBoundingVertices ( ) const
pure virtual

Get the raw bounding volume hierarchy vertex data.

Returns
A pointer to the raw data, or null if not present.

The documentation for this interface was generated from the following file:
  • murl_resource_i_mesh.h


Copyright © 2011-2024 Spraylight GmbH.