11 #ifndef SLGLVERTEXARRAYEXT_H 
   12 #define SLGLVERTEXARRAYEXT_H 
   41                             SLuint            indexFirstVertex = 0,
 
   48                               SLuint            indexFirstVertex = 0,
 
Wrapper class around OpenGL Vertex Array Objects (VAO)
 
vector< SLVec2f > SLVVec2f
 
vector< SLVec3f > SLVVec3f
 
vector< SLVec4f > SLVVec4f
 
SLGLVertexArray adds Helper Functions for quick Line & Point Drawing.
 
void generateVertexPos(SLVVec2f *p)
Adds or updates & generates a position vertex attribute for colored line or point drawing.
 
void drawElementAsColored(SLGLPrimitiveType primitiveType, SLCol4f color, SLfloat pointSize, SLuint indexFirstVertex=0, SLuint countVertices=0)
Draws the VAO by element indices with the specified primitive with the color.
 
void drawArrayAsColored(SLGLPrimitiveType primitiveType, SLCol4f color, SLfloat lineOrPointSize=1.0f, SLuint indexFirstVertex=0, SLuint countVertices=0)
Draws the array as the specified primitive with the color.
 
void generateVertexPos(SLVVec3f *p)
Adds or updates & generates a position vertex attribute for colored line or point drawing.
 
virtual ~SLGLVertexArrayExt()
 
void generateVertexPos(SLVVec4f *p)
Adds or updates & generates a position vertex attribute for colored line or point drawing.
 
SLGLVertexArray encapsulates the core OpenGL drawing.
 
SLuint numVertices() const