The IIndexBuffer property interface.
More...
#include "murl_graph_i_index_buffer.h"
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.
◆ SetIndexBufferAccessMode()
Set the buffer access mode.
- Parameters
-
- Returns
- true if successful.
◆ GetIndexBufferAccessMode()
Get the buffer access mode.
- Returns
- The access mode.
◆ SetMaxNumberOfIndices()
virtual Bool Murl::Graph::IIndexBuffer::SetMaxNumberOfIndices |
( |
UInt32 |
maxNumberOfIndices, |
|
|
Bool |
preserveContents |
|
) |
| |
|
pure virtual |
Set the maximum number of indices the index buffer can hold.
- Parameters
-
maxNumberOfIndices | The maximum capacity. |
preserveContents | If true, existing contents will be copied; but existing indices beyond the new capacity are discarded. |
- Returns
- true if successful.
◆ GetMaxNumberOfIndices()
virtual UInt32 Murl::Graph::IIndexBuffer::GetMaxNumberOfIndices |
( |
| ) |
const |
|
pure virtual |
Get the maximum number of indices the index buffer can hold.
- Returns
- The maximum capacity.
◆ SetIndexType()
Set the data type of the indices stored in the buffer.
- Parameters
-
- Returns
- true if successful.
◆ GetIndexType()
Get the data type of the indices stored in the buffer.
- Returns
- One of the IEnums::IndexType members.
◆ GetIndexByteSize()
virtual UInt32 Murl::Graph::IIndexBuffer::GetIndexByteSize |
( |
| ) |
const |
|
pure virtual |
Get the number of bytes of a single index element stored.
- Returns
- The number of bytes per index element.
◆ GetIndexData() [1/2]
virtual void* Murl::Graph::IIndexBuffer::GetIndexData |
( |
| ) |
|
|
pure virtual |
Retrieve a mutable pointer to the index data stored in the buffer.
- Returns
- A mutable pointer to the data.
◆ GetIndexData() [2/2]
virtual const void* Murl::Graph::IIndexBuffer::GetIndexData |
( |
| ) |
const |
|
pure virtual |
Retrieve a constant pointer to the index data stored in the buffer.
- Returns
- A constant pointer to the data.
◆ SetNumberOfIndices()
virtual Bool Murl::Graph::IIndexBuffer::SetNumberOfIndices |
( |
UInt32 |
numberOfIndices | ) |
|
|
pure virtual |
Set the actual number of indices currently used.
- Parameters
-
- Returns
- true if successful.
◆ SetIndicesModified() [1/2]
virtual Bool Murl::Graph::IIndexBuffer::SetIndicesModified |
( |
| ) |
|
|
pure virtual |
Mark the whole index buffer as modified.
- Returns
- true if successful.
◆ SetIndicesModified() [2/2]
virtual Bool Murl::Graph::IIndexBuffer::SetIndicesModified |
( |
UInt32 |
firstIndex, |
|
|
UInt32 |
numberOfIndices |
|
) |
| |
|
pure virtual |
Mark a portion of the index buffer as modified.
- Parameters
-
firstIndex | The zero-based index of the first modified index value. |
numberOfIndices | The number of modified indices. |
- Returns
- true if successful.
The documentation for this interface was generated from the following file:
- murl_graph_i_index_buffer.h