![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IMesh resource object interface.
Get the number of bones affecting this mesh.
Integer GetNumberOfBones()
Get the minimum vector of the axis-aligned bounding box.
Murl.Math.Vector GetBoundingBoxMin()
Get the maximum vector of the axis-aligned bounding box.
Murl.Math.Vector GetBoundingBoxMax()
Get the total number of vertex buffers present.
Integer GetNumberOfVertexBuffers()
Get the number of vertices stored in the vertex buffer at a given index.
Integer GetNumberOfVertexBufferVertices(Integer vertexBufferIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
Get the number of attributes defined for the vertex buffer at a given index.
Integer GetNumberOfVertexBufferAttributes(Integer vertexBufferIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
Get the access mode of the vertex buffer at a given index.
Murl.IEnums.BufferAccessMode GetVertexBufferAccessMode(Integer vertexBufferIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
Get the byte stride of the vertex buffer at a given index.
Integer GetVertexBufferByteStride(Integer vertexBufferIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
Get the predefined item of a vertex buffer attribute.
Murl.IEnums.AttributeItem GetVertexBufferAttributeItem(Integer vertexBufferIndex, Integer attributeIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
attributeIndex | The index of the attribute, from 0 to GetNumberOfVertexBufferAttributes()-1. |
Get the data type of a vertex buffer attribute.
Murl.IEnums.AttributeType GetVertexBufferAttributeType(Integer vertexBufferIndex, Integer attributeIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
attributeIndex | The index of the attribute, from 0 to GetNumberOfVertexBufferAttributes()-1. |
Get the byte offset of a vertex buffer attribute.
Integer GetVertexBufferAttributeByteOffset(Integer vertexBufferIndex, Integer attributeIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
attributeIndex | The index of the attribute, from 0 to GetNumberOfVertexBufferAttributes()-1. |
Get the slot index to which a vertex buffer gets assigned.
Integer GetVertexBufferSlot(Integer vertexBufferIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
Get the unit index to which a vertex buffer gets assigned.
Integer GetVertexBufferUnit(Integer vertexBufferIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
Get the total number of index buffers present.
Integer GetNumberOfIndexBuffers()
Get the number of indices stored in the index buffer at a given index.
Integer GetNumberOfIndexBufferIndices(Integer indexBufferIndex)
indexBufferIndex | The index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1. |
Get the number of segments stored in the index buffer at a given index.
Integer GetNumberOfIndexBufferSegments(Integer indexBufferIndex)
indexBufferIndex | The index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1. |
Get the access mode of the index buffer at a given index.
Murl.IEnums.BufferAccessMode GetIndexBufferAccessMode(Integer indexBufferIndex)
indexBufferIndex | The index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1. |
Get the data type of the index buffer at a given index.
Murl.IEnums.IndexType GetIndexBufferIndexType(Integer indexBufferIndex)
indexBufferIndex | The index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1. |
Get the primitive type of the index buffer at a given index.
Murl.IEnums.PrimitiveType GetIndexBufferPrimitiveType(Integer indexBufferIndex)
indexBufferIndex | The index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1. |
Get the slot of vertices used to render the index buffer at a given index.
Integer GetIndexBufferVerticesSlot(Integer indexBufferIndex)
indexBufferIndex | The index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1. |
Get the slot index for the material used to render the index buffer at a given index.
Integer GetIndexBufferMaterialSlot(Integer indexBufferIndex)
indexBufferIndex | The index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1. |
Get the slot index for the parameters used to render the index buffer at a given index.
Integer GetIndexBufferParametersSlot(Integer indexBufferIndex)
indexBufferIndex | The index of the index buffer, from 0 to GetNumberOfIndexBuffers()-1. |
Get the slot index for the texture at a given unit used to render the index buffer at a given index.
Integer GetIndexBufferTextureSlot(Integer indexBufferIndex, Integer unit)
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. |
Get the total number of morph buffers present for a given vertex buffer.
Integer GetNumberOfMorphBuffers(Integer vertexBufferIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
Get the number of morphed vertices for a given vertex and morph buffer.
Integer GetNumberOfMorphBufferVertices(Integer vertexBufferIndex, Integer morphBufferIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
morphBufferIndex | The index of the morph buffer, from 0 to GetNumberOfMorphBuffers()-1. |
Get the number of morphed attributes for a given vertex and morph buffer.
Integer GetNumberOfMorphBufferAttributes(Integer vertexBufferIndex, Integer morphBufferIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
morphBufferIndex | The index of the morph buffer, from 0 to GetNumberOfMorphBuffers()-1. |
Get the byte stride for a given vertex and morph buffer.
Integer GetMorphBufferByteStride(Integer vertexBufferIndex, Integer morphBufferIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
morphBufferIndex | The index of the morph buffer, from 0 to GetNumberOfMorphBuffers()-1. |
Get the predefined morph attribute item for a given vertex and morph buffer.
Murl.IEnums.AttributeItem GetMorphBufferAttributeItem(Integer vertexBufferIndex, Integer morphBufferIndex, Integer attributeIndex)
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. |
Get the morph attribute data type for a given vertex and morph buffer.
Murl.IEnums.AttributeType GetMorphBufferAttributeType(Integer vertexBufferIndex, Integer morphBufferIndex, Integer attributeIndex)
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. |
Get the morph attribute byte offset for a given vertex and morph buffer.
Integer GetMorphBufferAttributeByteOffset(Integer vertexBufferIndex, Integer morphBufferIndex, Integer attributeIndex)
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. |
Get the index data type for a given vertex and morph buffer.
Murl.IEnums.IndexType GetMorphBufferIndexType(Integer vertexBufferIndex, Integer morphBufferIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
morphBufferIndex | The index of the morph buffer, from 0 to GetNumberOfMorphBuffers()-1. |
Get the total number of deform buffers present for a given vertex buffer.
Integer GetNumberOfDeformBuffers(Integer vertexBufferIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
Get the number of entries for a given vertex and deform buffer.
Integer GetNumberOfDeformEntries(Integer vertexBufferIndex, Integer deformBufferIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
deformBufferIndex | The index of the deform buffer, from 0 to GetNumberOfDeformBuffers()-1. |
Get the number of deformed vertices for a given vertex buffer, deform buffer and deform entry.
Integer GetNumberOfDeformBufferVertices(Integer vertexBufferIndex, Integer deformBufferIndex, Integer deformEntryIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
deformBufferIndex | The index of the deform buffer, from 0 to GetNumberOfDeformBuffers()-1. |
deformEntryIndex | The index of the deform entry, from 0 to GetNumberOfDeformEntries()-1. |
Get the number of deformed attributes for a given vertex and deform buffer.
Integer GetNumberOfDeformBufferAttributes(Integer vertexBufferIndex, Integer deformBufferIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
deformBufferIndex | The index of the morph buffer, from 0 to GetNumberOfDeformBuffers()-1. |
Get the byte stride for a given vertex and deform buffer.
Integer GetDeformBufferByteStride(Integer vertexBufferIndex, Integer deformBufferIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
deformBufferIndex | The index of the deform buffer, from 0 to GetNumberOfDeformBuffers()-1. |
Get the predefined deform attribute item for a given vertex and deform buffer.
Murl.IEnums.AttributeItem GetDeformBufferAttributeItem(Integer vertexBufferIndex, Integer deformBufferIndex, Integer attributeIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
deformBufferIndex | The index of the deform buffer, from 0 to GetNumberOfDeformBuffers()-1. |
attributeIndex | The index of the attribute, from 0 to GetNumberOfDeformBufferAttributes()-1. |
Get the deform attribute data type for a given vertex and deform buffer.
Murl.IEnums.AttributeType GetDeformBufferAttributeType(Integer vertexBufferIndex, Integer deformBufferIndex, Integer attributeIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
deformBufferIndex | The index of the deform buffer, from 0 to GetNumberOfDeformBuffers()-1. |
attributeIndex | The index of the attribute, from 0 to GetNumberOfDeformBufferAttributes()-1. |
Get the deform attribute byte offset for a given vertex and deform buffer.
Integer GetDeformBufferAttributeByteOffset(Integer vertexBufferIndex, Integer deformBufferIndex, Integer attributeIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
deformBufferIndex | The index of the deform buffer, from 0 to GetNumberOfDeformBuffers()-1. |
attributeIndex | The index of the attribute, from 0 to GetNumberOfDeformBufferAttributes()-1. |
Get the index data type for a given vertex and deform buffer.
Murl.IEnums.IndexType GetDeformBufferIndexType(Integer vertexBufferIndex, Integer deformBufferIndex)
vertexBufferIndex | The index of the vertex buffer, from 0 to GetNumberOfVertexBuffers()-1. |
deformBufferIndex | The index of the deform buffer, from 0 to GetNumberOfDeformBuffers()-1. |
Get the total number of collision surfaces present.
Integer GetNumberOfCollisionSurfaces()
Get the surface slot used for a given collision surface.
Integer GetCollisionSurfaceSlot(Integer surfaceIndex)
surfaceIndex | The index of the surface, from 0 to GetNumberOfCollisionSurfaces()-1. |
Get the number of BSP splitting planes present.
Integer GetNumberOfBspPlanes()
Get the number of BSP nodes present.
Integer GetNumberOfBspNodes()
Get the number of BSP leaves present.
Integer GetNumberOfBspLeaves()
Get the number of BSP faces present.
Integer GetNumberOfBspFaces()
Get the number of BSP segments present.
Integer GetNumberOfBspSegments()
Get the number of BSP clusters present.
Integer GetNumberOfBspClusters()
Get the byte size of a BSP cluster.
Integer GetBspClustersByteSize()
Get the number of bounding volume hierarchy nodes present.
Integer GetNumberOfBoundingNodes()
Get the number of bounding volume hierarchy leaves present.
Integer GetNumberOfBoundingLeaves()
Get the number of bounding volume hierarchy vertices present.
Integer GetNumberOfBoundingVertices()
Get the total byte size of the bounding volume hierarchy vertices.
Integer GetBoundingVerticesByteSize()