![]() |
Murl Engine API
Version 2018.3
|
The IMesh resource object interface. More...
#include <murl_resource_i_mesh.h>
The IMesh resource object interface.
Classes | |
struct | Iff |
IFF file specific structs. More... | |
struct | Raw |
Raw data structs. More... | |
Public Member Functions | |
virtual IObject * | GetObjectInterface ()=0 |
Get the mutable Resource::IObject interface. More... | |
virtual const IObject * | GetObjectInterface () 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 Vector & | GetBoundingBoxMin () const =0 |
Get the minimum vector of the axis-aligned bounding box. More... | |
virtual const Vector & | GetBoundingBoxMax () 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 UInt32 * | GetIndexBufferAdjacentIndices (UInt32 indexBufferIndex) const =0 |
Get the raw adjacent index data of the index buffer at a given index. More... | |
virtual const UInt32 * | GetIndexBufferSegments (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 | 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::BspPlane * | GetBspPlanes () const =0 |
Get the raw BSP splitting plane data. More... | |
virtual const Raw::BspNode * | GetBspNodes () const =0 |
Get the raw BSP node data. More... | |
virtual const Raw::BspLeaf * | GetBspLeaves () const =0 |
Get the raw BSP leaf data. More... | |
virtual const Raw::BspFace * | GetBspFaces () const =0 |
Get the raw BSP face data. More... | |
virtual const Raw::BspSegment * | GetBspSegments () const =0 |
Get the raw BSP segment data. More... | |
virtual const UInt8 * | GetBspClusters () 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::BoundingNode * | GetBoundingNodes () const =0 |
Get the raw bounding volume hierarchy node data. More... | |
virtual const Raw::BoundingLeaf * | GetBoundingLeaves () const =0 |
Get the raw bounding volume hierarchy leaf data. More... | |
virtual const Raw::BoundingVertex * | GetBoundingVertices () const =0 |
Get the raw bounding volume hierarchy vertex data. More... | |
|
pure virtual |
Get the mutable Resource::IObject interface.
|
pure virtual |
Get the constant Resource::IObject interface.
|
pure virtual |
Get the number of bones affecting this mesh.
|
pure virtual |
Get the minimum vector of the axis-aligned bounding box.
|
pure virtual |
Get the maximum vector of the axis-aligned bounding box.
|
pure virtual |
Get the total number of vertex buffers present.
|
pure virtual |
Get the number of vertices stored in the vertex buffer at a given index.
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
|
pure virtual |
Get the number of attributes defined for the vertex buffer at a given index.
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
|
pure virtual |
Get the raw buffer data of the vertex buffer at a given index.
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
|
pure virtual |
Get the access mode of the vertex buffer at a given index.
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
|
pure virtual |
Get the byte stride of the vertex buffer at a given index.
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
|
pure virtual |
Get the predefined item of a vertex buffer attribute.
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
attributeIndex | The index of the attribute, from 0 to GetNumberOfVertexBufferAttributes()-1. |
|
pure virtual |
Get the data type of a vertex buffer attribute.
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
attributeIndex | The index of the attribute, from 0 to GetNumberOfVertexBufferAttributes()-1. |
|
pure virtual |
Get the byte offset of a vertex buffer attribute.
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
attributeIndex | The index of the attribute, from 0 to GetNumberOfVertexBufferAttributes()-1. |
|
pure virtual |
Get the slot index to which a vertex buffer gets assigned.
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
|
pure virtual |
Get the unit index to which a vertex buffer gets assigned.
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
|
pure virtual |
Get the total number of index buffers present.
|
pure virtual |
Get the number of indices stored in the index buffer at a given index.
indexBufferIndex | The index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1. |
|
pure virtual |
Get the number of segments stored in the index buffer at a given index.
indexBufferIndex | The index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1. |
|
pure virtual |
Get the raw buffer data of the index buffer at a given index.
indexBufferIndex | The index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1. |
|
pure virtual |
Get the raw adjacent vertex data of the index buffer at a given index.
indexBufferIndex | The index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1. |
|
pure virtual |
Get the raw adjacent index data of the index buffer at a given index.
indexBufferIndex | The index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1. |
|
pure virtual |
Get the raw segment data of the index buffer at a given index.
indexBufferIndex | The index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1. |
|
pure virtual |
Get the access mode of the index buffer at a given index.
indexBufferIndex | The index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1. |
|
pure virtual |
Get the data type of the index buffer at a given index.
indexBufferIndex | The index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1. |
|
pure virtual |
Get the primitive type of the index buffer at a given index.
indexBufferIndex | The index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1. |
|
pure virtual |
Get the slot of vertices used to render the index buffer at a given index.
indexBufferIndex | The index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1. |
|
pure virtual |
Get the slot index for the material used to render the index buffer at a given index.
indexBufferIndex | The index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1. |
|
pure virtual |
Get the slot index for the parameters used to render the index buffer at a given index.
indexBufferIndex | The index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1. |
|
pure virtual |
Get the slot index for the texture at a given unit used to render the index buffer at a given index.
indexBufferIndex | The index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1. |
unit | The texture unit, in the range from 0 to IEnums::NUM_TEXTURE_UNITS. |
|
pure virtual |
Get the total number of morph buffers present for a given vertex buffer.
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
|
pure virtual |
Get the number of morphed vertices for a given vertex and morph buffer.
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
morphBufferIndex | The index of the morph buffer, from 0 to GetNumberOfMorphBuffers()-1. |
|
pure virtual |
Get the number of morphed attributes for a given vertex and morph buffer.
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
morphBufferIndex | The index of the morph buffer, from 0 to GetNumberOfMorphBuffers()-1. |
|
pure virtual |
Get the raw vertex morph data for a given vertex and morph buffer.
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
morphBufferIndex | The index of the morph buffer, from 0 to GetNumberOfMorphBuffers()-1. |
|
pure virtual |
Get the raw index morph data for a given vertex and morph buffer.
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
morphBufferIndex | The index of the morph buffer, from 0 to GetNumberOfMorphBuffers()-1. |
|
pure virtual |
Get the byte stride for a given vertex and morph buffer.
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
morphBufferIndex | The index of the morph buffer, from 0 to GetNumberOfMorphBuffers()-1. |
|
pure virtual |
Get the predefined morph attribute item for a given vertex and morph buffer.
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
morphBufferIndex | The index of the morph buffer, from 0 to GetNumberOfMorphBuffers()-1. |
attributeIndex | The index of the attribute, from 0 to GetNumberOfMorphBufferAttributes()-1. |
|
pure virtual |
Get the morph attribute data type for a given vertex and morph buffer.
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
morphBufferIndex | The index of the morph buffer, from 0 to GetNumberOfMorphBuffers()-1. |
attributeIndex | The index of the attribute, from 0 to GetNumberOfMorphBufferAttributes()-1. |
|
pure virtual |
Get the morph attribute byte offset for a given vertex and morph buffer.
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
morphBufferIndex | The index of the morph buffer, from 0 to GetNumberOfMorphBuffers()-1. |
attributeIndex | The index of the attribute, from 0 to GetNumberOfMorphBufferAttributes()-1. |
|
pure virtual |
Get the index data type for a given vertex and morph buffer.
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
morphBufferIndex | The index of the morph buffer, from 0 to GetNumberOfMorphBuffers()-1. |
|
pure virtual |
Get the total number of collision surfaces present.
|
pure virtual |
Get the surface slot used for a given collision surface.
surfaceIndex | The index of the surface, from 0 to GetNumberOfCollisionSurfaces()-1. |
|
pure virtual |
Get the number of BSP splitting planes present.
|
pure virtual |
Get the number of BSP nodes present.
|
pure virtual |
Get the number of BSP leaves present.
|
pure virtual |
Get the number of BSP faces present.
|
pure virtual |
Get the number of BSP segments present.
|
pure virtual |
Get the number of BSP clusters present.
|
pure virtual |
Get the byte size of a BSP cluster.
|
pure virtual |
Get the raw BSP splitting plane data.
|
pure virtual |
Get the raw BSP node data.
|
pure virtual |
Get the raw BSP leaf data.
|
pure virtual |
Get the raw BSP face data.
|
pure virtual |
Get the raw BSP segment data.
|
pure virtual |
Get the raw BSP cluster data.
|
pure virtual |
Get the number of bounding volume hierarchy nodes present.
|
pure virtual |
Get the number of bounding volume hierarchy leaves present.
|
pure virtual |
Get the number of bounding volume hierarchy vertices present.
|
pure virtual |
Get the total byte size of the bounding volume hierarchy vertices.
|
pure virtual |
Get the raw bounding volume hierarchy node data.
|
pure virtual |
Get the raw bounding volume hierarchy leaf data.
|
pure virtual |
Get the raw bounding volume hierarchy vertex data.