40 std::cerr<<
"Warning trying to set attribute on Unbound VOA\n";
#define glGenVertexArrays
#define glVertexAttribPointer
#define glEnableVertexAttribArray
implementation files for RibExport class
void setVertexAttributePointer(GLuint _id, GLint _size, GLenum _type, GLsizei _stride, unsigned int _dataOffset, bool _normalise=false)
set the generic vertex attribute pointer data usually this method will do however the user may occasi...
#define glBindVertexArray
GLenum getMode() const
get the draw mode
GLenum m_mode
the draw mode
bool m_bound
debug flag to indicate if the vao is bound.
void setMode(const GLenum &_mode)
set the draw mode
GLuint m_id
the id of the VAO allocated from OpenGL
void unbind()
unbind the VAO by binding default 0
void bind()
bind the VAO so it can be used.
AbstractVAO(GLenum _mode=GL_TRIANGLES)