7#ifndef BALL_VIEW_RENDERING_RENDERERS_VERTEXBUFFER_H
8#define BALL_VIEW_RENDERING_RENDERERS_VERTEXBUFFER_H
14#ifndef BALL_VIEW_KERNEL_COMMON_H
18#ifndef BALL_VIEW_DATATYPE_COLORRGBA_H
48 typedef GLuint Buffer[4];
68 const
Mesh* getMesh() {
return mesh_;}
#define BALL_CREATE(name)
bool isBusy() const
Return true, if currently updateing or drawing.
static GLRenderer * gl_renderer_
void clearBuffer()
Free the reserved (and filled) vertex buffer.
bool draw()
Draw the mesh from the buffer.
void setMesh(const Mesh &mesh)
Set the Mesh which shall be drawn with this buffer object.
static void setGLRenderer(GLRenderer *renderer)
void clear()
Unset the mesh pointer and clear the buffer.
bool initialize()
Transfer all vertex, normal, index and color data of the mesh into the vertex buffer object.