25 #ifndef __glfVertexArrayObject_hh__
26 #define __glfVertexArrayObject_hh__
28 #include "glfCommon.hh"
29 #include "glfArrayBufferObject.hh"
40 class BIASOpenGLFramework_EXPORT glfVertexArrayObject {
42 glfVertexArrayObject();
43 ~glfVertexArrayObject();
51 void BindRevertable();
55 void UploadData(GLuint slotIndex,
56 GLint numValuesPerVertex,
57 float* data,
unsigned int numValues,
58 GLenum usageHint=GL_STATIC_DRAW);
62 GLuint vertexArrayObjID_;
65 std::map<GLuint, glfArrayBufferObject> internalArrayBufferObjects_;
67 bool boundRevertably_;
68 GLint previousBinding_;
71 glfVertexArrayObject& operator=(
const glfVertexArrayObject& b);