CrystalSpace

Public API Reference

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

csVertexListWalker< T > Class Template Reference

Helper class to make it easier to access single elements from renderbuffers (with stride). More...

#include <csgfx/vertexlistwalker.h>

List of all members.

Public Member Functions

 csVertexListWalker (void *listPointer, size_t elements, size_t dist=sizeof(T))
 Construct new walker.
T & operator * ()
 Get current element.
void operator++ ()
 Set current element to the next.
T & operator[] (size_t n)
 Get a specific element.


Detailed Description

template<class T>
class csVertexListWalker< T >

Helper class to make it easier to access single elements from renderbuffers (with stride).

Definition at line 27 of file vertexlistwalker.h.


Constructor & Destructor Documentation

template<class T>
csVertexListWalker< T >::csVertexListWalker void *  listPointer,
size_t  elements,
size_t  dist = sizeof(T)
[inline]
 

Construct new walker.

Parameters:
listPointer Pointer to buffer data.
elements Number of elements in the buffer.
dist Distance, in bytes, between two elements in the buffer.

Definition at line 36 of file vertexlistwalker.h.


Member Function Documentation

template<class T>
T& csVertexListWalker< T >::operator *  )  [inline]
 

Get current element.

Definition at line 44 of file vertexlistwalker.h.

template<class T>
void csVertexListWalker< T >::operator++  )  [inline]
 

Set current element to the next.

Definition at line 57 of file vertexlistwalker.h.

References CS_ASSERT.

template<class T>
T& csVertexListWalker< T >::operator[] size_t  n  )  [inline]
 

Get a specific element.

Definition at line 50 of file vertexlistwalker.h.

References CS_ASSERT.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.4.4