![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IIndexBuffer property interface.
This interface provides properties common to a class representing an array of individual indices. Typically this is used in conjunction with a Graph::IVertexBuffer to represent an indexed mesh geometry, but there is no restriction to do so.
Set the buffer access mode.
Boolean SetIndexBufferAccessMode(Murl.IEnums.BufferAccessMode mode)
mode | The access mode. |
Get the buffer access mode.
Murl.IEnums.BufferAccessMode GetIndexBufferAccessMode()
Set the maximum number of indices the index buffer can hold.
Boolean SetMaxNumberOfIndices(Integer maxNumberOfIndices, Boolean preserveContents)
maxNumberOfIndices | The maximum capacity. |
preserveContents | If true, existing contents will be copied; but existing indices beyond the new capacity are discarded. |
Get the maximum number of indices the index buffer can hold.
Integer GetMaxNumberOfIndices()
Set the data type of the indices stored in the buffer.
Boolean SetIndexType(Murl.IEnums.IndexType type)
type | One of the IEnums::IndexType members. |
Get the data type of the indices stored in the buffer.
Murl.IEnums.IndexType GetIndexType()
Get the number of bytes of a single index element stored.
Integer GetIndexByteSize()
Set the actual number of indices currently used.
Boolean SetNumberOfIndices(Integer numberOfIndices)
numberOfIndices | The current number of indices, in the range from 0 to GetMaxNumberOfIndices(). |
Mark the whole index buffer as modified.
Boolean SetIndicesModified()
Mark a portion of the index buffer as modified.
Boolean SetIndicesModified(Integer firstIndex, Integer numberOfIndices)
firstIndex | The zero-based index of the first modified index value. |
numberOfIndices | The number of modified indices. |