14 std::cerr<<
"Warning trying to draw an unallocated VOA\n";
18 std::cerr<<
"Warning trying to draw an unbound VOA\n";
41 std::cerr<<
"trying to set VOA data when unbound\n";
virtual void setData(const VertexData &_data)
, this method sets the data for the VAO if data has already been set it will remove the existing data...
#define glDeleteVertexArrays
virtual ~SimpleVAO()
dtor clears the VAO data
implementation files for RibExport class
GLenum m_mode
the draw mode
virtual void draw() const
draw the VAO using glDrawArrays
bool m_bound
debug flag to indicate if the vao is bound.
GLAPI void GLAPIENTRY glDrawArrays(GLenum mode, GLint first, GLsizei count)
GLuint m_id
the id of the VAO allocated from OpenGL
virtual void removeVAO()
remove the VAO and buffers created
void unbind()
unbind the VAO by binding default 0
size_t m_indicesCount
the number of indices stored in the VAO.
bool m_allocated
debug flag to indicate if data has been set for the VAO
GLuint m_buffer
the id of the buffer for the VAO