#include <triangleiterator.h>
Public Member Functions | |
ShapeTriangleFanIterator (const MeshShape &shape) | |
virtual const ShapeTriangle | next () override |
![]() | |
ShapeTriangleIterator (const MeshShape &shape, int startIndex) | |
virtual | ~ShapeTriangleIterator () |
bool | isDone () const |
Additional Inherited Members | |
![]() | |
const uint32 * | mCurrentIndex |
The current position in the index buffer of the shape that we're iterating through. More... | |
int | mCurrentTriangle = 0 |
Implementation of ShapeTriangleIterator that can iterate through the triangles of a MeshShape of type EDrawMode::TRIANGLE_FAN
ShapeTriangleFanIterator | ( | const MeshShape & | shape | ) |
|
overridevirtual |
Retrieves the indices of the next triangle in the MeshShape. Should only be called while isDone() returns false.
Implements ShapeTriangleIterator.