#include <triangleiterator.h>
Public Member Functions | |
| ShapeTriangleIterator (const MeshShape &shape, int startIndex) | |
| virtual | ~ShapeTriangleIterator () |
| bool | isDone () const |
| virtual const ShapeTriangle | next ()=0 |
Protected Attributes | |
| const uint32 * | mCurrentIndex |
| The current position in the index buffer of the shape that we're iterating through. More... | |
| int | mCurrentTriangle = 0 |
A ShapeTriangleIterator can be used to iterate through all triangles in a MeshShape. The ShapeTriangleIterator itself only serves as a base class; derived classes are provided that deal with differing index layouts depending on the type of the mesh.
| ShapeTriangleIterator | ( | const MeshShape & | shape, |
| int | startIndex | ||
| ) |
|
virtual |
| bool isDone | ( | ) | const |
Checks whether this iterator is done iterating. next() should only be called while this function returns false.
|
pure virtual |
Retrieves the indices of the next triangle in the MeshShape. Should only be called while isDone() returns false.
Implemented in ShapeTriangleStripIterator, ShapeTriangleFanIterator, and ShapeTriangleListIterator.
|
protected |
The current position in the index buffer of the shape that we're iterating through.
|
protected |