jubilant-funicular
Public Member Functions | Public Attributes | List of all members
nta::Primitive Struct Reference

represents a primitive (point, line, triangle, etc.) More...

#include <PrimitiveBatch.h>

Collaboration diagram for nta::Primitive:
Collaboration graph
[legend]

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< Vertex2Dvertices
 the vertices that make up the primitive
 

Detailed Description

represents a primitive (point, line, triangle, etc.)

Definition at line 8 of file PrimitiveBatch.h.


The documentation for this struct was generated from the following file: