VertexElemIter< T > Class Template Reference

Description

template<class T>
class bs::VertexElemIter< T >

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

Methods

 VertexElemIter (UINT8 *data, UINT32 byteStride, UINT32 numElements)
 
void addValue (const T &value)
 Adds a new value to the iterators current position and advances the iterator. More...
 
void setValue (const T &value)
 Sets a new value at the iterators current position. More...
 
T & getValue ()
 Returns the value at the iterators current position. More...
 
bool moveNext ()
 Moves the iterator to the next position. More...
 
UINT32 getNumElements () const
 Returns the number of elements this iterator can iterate over. More...
 

Method documentation

void addValue ( const T &  value)

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

UINT32 getNumElements ( ) const

Returns the number of elements this iterator can iterate over.

T& getValue ( )

Returns the value at the iterators current position.

bool moveNext ( )

Moves the iterator to the next position.

Returns true if there are more elements.

void setValue ( const T &  value)

Sets a new value at the iterators current position.