25 #ifndef GRAPHICS_INDEXBUFFER_H 26 #define GRAPHICS_INDEXBUFFER_H 59 void initGL(GLuint hint = GL_STATIC_DRAW);
81 #endif // GRAPHICS_INDEXBUFFER_H GLvoid * getData()
Access buffer data.
void destroyGL()
Clear (destroy) GL resources associated with the buffer.
GLuint _ibo
"Index" Buffer Object.
void updateGL()
Update existing GL buffer object.
GLuint _hint
GL hint for static or dynamic data.
uint32 _count
Number of elements in buffer.
void initGL(GLuint hint=GL_STATIC_DRAW)
Initialise internal buffer object for GL handling.
GLenum getType() const
Get element type.
uint32 getCount() const
Get element count.
uint32 _size
Size of a buffer element in bytes.
Buffer containing indices data.
void setSize(uint32 indexCount, uint32 indexSize, GLenum indexType)
Change buffer size.
GLenum _type
Element type (GL_UNSIGNED_SHORT, GL_UNSIGNED_INT, ...).
IndexBuffer & operator=(const IndexBuffer &other)