Go to the documentation of this file.
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_;}
111 #endif // BALL_VIEW_RENDERING_VERTEXBUFFER_H
static void setGLRenderer(GLRenderer *renderer)
void setMesh(const Mesh &mesh)
Set the Mesh which shall be drawn with this buffer object.
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.
void clearBuffer()
Free the reserved (and filled) vertex buffer.
static GLRenderer * gl_renderer_
bool draw()
Draw the mesh from the buffer.
bool isBusy() const
Return true, if currently updateing or drawing.
#define BALL_CREATE(name)