17 #ifndef SIMPLEINDEXVAO_H_ 18 #define SIMPLEINDEXVAO_H_ 43 m_indexSize(_indexSize), m_indexData(_indexData), m_indexType(_indexType){}
59 virtual void draw()
const;
67 virtual void removeVAO();
implementation files for RibExport class
SimpleIndexVAO(GLenum _mode)
ctor calles parent ctor to allocate vao;
const GLvoid * m_indexData
base class for all VAO from the VAOFactory this defines the base class type with simple draw / bind b...
GLenum m_indexType
data type of the index data (e.g. GL_UNSIGNED_INT)
Simple indexed vao using one buffer and float data see https://github.com/NCCA/VertexArrayObject/tree...
VertexData(size_t _size, const GLfloat &_data, unsigned int _indexSize, const GLvoid *_indexData, GLenum _indexType, GLenum _mode=GL_STATIC_DRAW)
static AbstractVAO * create(GLenum _mode=GL_TRIANGLES)
creator method for the factory
GLuint getBufferID(unsigned int)
return the id of the buffer, if there is only 1 buffer just return this if we have the more than one ...