17 #ifndef ABSTRACTVAO_H_ 18 #define ABSTRACTVAO_H_ 41 m_size(_size), m_data(_data), m_mode(_mode){}
64 virtual void draw()
const =0;
69 virtual void setData(
const VertexData &_data)=0;
74 virtual void removeVAO()=0;
86 void setVertexAttributePointer(
GLuint _id,
GLint _size,
GLenum _type,
GLsizei _stride,
unsigned int _dataOffset,
bool _normalise=
false );
97 virtual GLuint getBufferID(
unsigned int _id=0)=0;
106 void setMode(
const GLenum &_mode);
129 bool m_allocated=
false;
133 size_t m_indicesCount=0;
main definition of types and namespace
implementation files for RibExport class
base class for all VAO from the VAOFactory this defines the base class type with simple draw / bind b...
void setNumIndices(size_t _s)
the number of indices to draw in the array. It may be that the draw routine can overide this at anoth...
VertexData(size_t _size, const GLfloat &_data, GLenum _mode=GL_STATIC_DRAW)