Murl::Resource::IMesh::Iff::VertexBufferChunk Struct Reference
An IFF chunk containing a vertex buffer. More...
#include "murl_resource_i_mesh.h"
Inheritance diagram for Murl::Resource::IMesh::Iff::VertexBufferChunk:
Public Types | |
enum | { FOURCC_CHUNK } |
IFF identifiers. More... | |
Public Attributes | |
UInt32 | mBufferIndex |
The global index of the vertex buffer. | |
UInt32 | mBufferAccessMode |
The access mode, from the IEnums::BufferAccessMode enumeration. | |
SInt32 | mBufferSlot |
The slot to bind this buffer to. | |
UInt32 | mBufferUnit |
The unit to bind this buffer to. | |
UInt32 | mNumberOfComponents |
The number of attribute components. | |
UInt32 | mNumberOfVertices |
The number of actual vertices in the buffer. | |
UInt32 | mByteStride |
The byte stride, i.e. the size of a single vertex entry 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). | |
Detailed Description
An IFF chunk containing a vertex buffer.
A native mesh resource can contain multiple vertex buffers, which are grouped at run-time according to their slot and unit properties. When rendering a single geometry batch, all vertex buffers with the same slot are grouped, the actual combined vertex data is sourced from that group. All so-grouped buffers must contain an identical number of vertices. A specific vertex attribute may only be defined in at most one of the buffers in the group.
Member Enumeration Documentation
◆ anonymous enum
anonymous enum |
IFF identifiers.
Enumerator | |
---|---|
FOURCC_CHUNK | The four character code identifying this chunk as a VertexBufferChunk. |
The documentation for this struct was generated from the following file:
- murl_resource_i_mesh.h