Murl::Resource::IMesh::Iff::AdjacentIndicesChunk Struct Reference

An IFF chunk containing information about adjacent indices. More...

#include "murl_resource_i_mesh.h"

Inheritance diagram for Murl::Resource::IMesh::Iff::AdjacentIndicesChunk:

Public Types

enum  { FOURCC }
 IFF identifiers. More...

Public Attributes

UInt32 mBufferIndex
 The global index of the corresponding index 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. More...
UInt32 mSize
 The size of this chunk minus sizeof(IffChunk). More...

Detailed Description

An IFF chunk containing information about adjacent indices.

An optional chunk of adjacent indices always refers to an existing index buffer, and contains exactly the same number of individual entries, stored as an UInt32 array. Adjacency information is only supported for index buffers of type IEnums::PRIMITIVE_TYPE_TRIANGLES. Every three consecutive indices in the referenced index buffer define a single triangle, with edges 0-1, 1-2 and 2-0. The AdjacentIndicesChunk stores the position of the corresponding edge of the neighboring triangle within the index buffer, or 0xffffffff if no neighboring triangle exists.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

IFF identifiers.


The four character code identifying this chunk as an AdjacentIndicesChunk.

The documentation for this struct was generated from the following file:
  • murl_resource_i_mesh.h

Copyright © 2011-2018 Spraylight GmbH.