![]() |
Murl Engine API
Version 2025.1
|
An IFF chunk containing an index buffer. More...
#include <murl_resource_i_mesh.h>
An IFF chunk containing an index buffer.
A native mesh resource can contain multiple index buffers, each of which specifies a single batch to be rendered. Each index buffer can specify a different set of property slots for material, parameters, textures and the actually used vertex buffer group.
Public Types | |
| enum | { FOURCC_CHUNK } |
| IFF identifiers. More... | |
Public Attributes | |
| UInt32 | mBufferIndex |
| The global index of the index buffer. | |
| UInt32 | mBufferAccessMode |
| The access mode, from the IEnums::BufferAccessMode enumeration. | |
| SInt32 | mVerticesSlot |
| The slot from which vertex data is sourced. | |
| SInt32 | mMaterialSlot |
| The material slot used for rendering. | |
| SInt32 | mParametersSlot |
| The parameters slot used for rendering. | |
| SInt32 | mTextureSlot [IEnums::NUM_TEXTURE_UNITS] |
| The inidivdual texture slots used. | |
| UInt32 | mIndexType |
| The type of indices, from the IEnums::IndexType enumeration. | |
| UInt32 | mPrimitiveType |
| The primitive type, from the IEnums::PrimitiveType enumeration. | |
| UInt32 | mNumberOfIndices |
| The total number of indices in this buffer. | |
| UInt32 | mDataOffset |
| An offset into the chunk where the buffer data is stored. See IffOffset(). | |
Additional Inherited Members | |
Public Member Functions inherited from Murl::Util::IffChunk | |
| template<class DataType > | |
| DataType * | IffOffset (UInt32 byteOffset) const |
| Get a typed pointer from an offset relative to the chunk. More... | |
| void | SetFourCC (UInt32 fourCC) |
| Set the chunk identifier. More... | |
| UInt32 | GetFourCC () const |
| Get the chunk identifier. More... | |
| void | SetChunkSize (UInt32 size) |
| Set the chunk size. More... | |
| UInt32 | GetChunkSize () const |
| Get the chunk size. More... | |
| UInt32 | GetRawSize () const |
| Get the chunk size minus sizeof(IffChunk). More... | |
Protected Attributes inherited from Murl::Util::IffChunk | |
| UInt32 | mFourCC |
| The FourCC chunk identifier. | |
| UInt32 | mSize |
| The size of this chunk minus sizeof(IffChunk). | |
| anonymous enum |
IFF identifiers.
| Enumerator | |
|---|---|
| FOURCC_CHUNK | The four character code identifying this chunk as an IndexBufferChunk. |