jubilant-funicular
|
represents a primitive (point, line, triangle, etc.) More...
#include <PrimitiveBatch.h>
Public Member Functions | |
Primitive (const std::initializer_list< Vertex2D > &verts, GLuint texID, float d) | |
Constructs a primitive from a list of vertices. | |
template<class Iterator > | |
Primitive (Iterator first, Iterator last, GLuint texID, float d) | |
Primitive (std::size_t numSides, crvec2 center, float sideLength, crvec4 color, float orientation, float d) | |
Constructs an untextured regular polygon. | |
~Primitive () | |
destructor | |
Public Attributes | |
float | depth |
the depth of the primitive | |
GLuint | textureID |
the texture used by the primitive | |
std::vector< Vertex2D > | vertices |
the vertices that make up the primitive | |
represents a primitive (point, line, triangle, etc.)
Definition at line 8 of file PrimitiveBatch.h.