NAP
Public Member Functions | List of all members
ShapeTriangleListIterator Class Referencefinal

#include <triangleiterator.h>

Public Member Functions

 ShapeTriangleListIterator (const MeshShape &shape)
 
virtual const ShapeTriangle next () override
 
- Public Member Functions inherited from ShapeTriangleIterator
 ShapeTriangleIterator (const MeshShape &shape, int startIndex)
 
virtual ~ShapeTriangleIterator ()
 
bool isDone () const
 

Additional Inherited Members

- Protected Attributes inherited from ShapeTriangleIterator
const uint32mCurrentIndex
 The current position in the index buffer of the shape that we're iterating through. More...
 
int mCurrentTriangle = 0
 

Description

Implementation of ShapeTriangleIterator that can iterate through the triangles of a MeshShape of type EDrawMode::TRIANGLES

Inheritance diagram for ShapeTriangleListIterator:
[legend]
Collaboration diagram for ShapeTriangleListIterator:
[legend]

Constructor & Destructor Documentation

◆ ShapeTriangleListIterator()

Member Function Documentation

◆ next()

virtual const ShapeTriangle next ( )
overridevirtual

Retrieves the indices of the next triangle in the MeshShape. Should only be called while isDone() returns false.

Returns
the 3 indices of the next triangle in a glm::ivec3

Implements ShapeTriangleIterator.