class VertexElemIterator

template<class T>

Iterator that allows you to easily populate or read vertex elements in MeshData.

Public

Constructors

VertexElemIterator<T>

VertexElemIterator<T>

VertexElemIterator<T>(u8 *data, u32 byteStride, u32 numElements)

Methods

AddValue

bool AddValue(const T &value)

Adds a new value to the iterators current position and advances the iterator.

Returns true if there is more room in the container.

SetValue

void SetValue(const T &value)

Sets a new value at the iterators current position.

GetValue

T &GetValue()

Returns the value at the iterators current position.

MoveNext

bool MoveNext()

Moves the iterator to the next position.

Returns true if there are more elements.

GetNumElements

u32 GetNumElements() const

Returns the number of elements this iterator can iterate over.

Private

Fields

mData

u8 * mData

mEnd

u8 * mEnd

mByteStride

u32 mByteStride

mNumElements

u32 mNumElements