![]() |
Murl Engine API
Version 2018.3
|
An IFF chunk containing information about index buffer segments. More...
#include <murl_resource_i_mesh.h>
An IFF chunk containing information about index buffer segments.
An index buffer can be segmented to dynamically select pieces of that index buffer to render. The data pointed to by mDataOffset must be interpreted as a pointer to an array of Raw::IndexSegment structs, with the data size in bytes equalling mNumberOfSegments*sizeof(Raw::IndexSegment).
Public Types | |
enum | { FOURCC } |
IFF identifiers. More... | |
Public Attributes | |
UInt32 | mBufferIndex |
The global index of the corresponding index buffer. | |
UInt32 | mNumberOfSegments |
The number of segment entries. | |
UInt32 | mDataOffset |
An offset into the chunk where the segment data is stored. See IffOffset(). | |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
UInt32 | mFourCC |
The FourCC chunk identifier. More... | |
UInt32 | mSize |
The size of this chunk minus sizeof(IffChunk). More... | |
anonymous enum |
IFF identifiers.
Enumerator | |
---|---|
FOURCC | The four character code identifying this chunk as an IndexSegmentsChunk. |