29 static unsigned int theVertexCountToModeMap[5];
34 template <
typename VertexFormat>
39 void drawArrays(
unsigned int vertexCount,
unsigned int vbo,
unsigned int index,
unsigned int count)
41 glBindBuffer(GL_ARRAY_BUFFER,vbo);
47 glBindBuffer(GL_ARRAY_BUFFER,0);
51 void drawElements(
unsigned int vbo,
unsigned int vertexCount,
const unsigned int* indices,
unsigned int count )
53 glBindBuffer(GL_ARRAY_BUFFER,vbo);
60 glBindBuffer(GL_ARRAY_BUFFER,0);