1 #ifndef VERTEXBUFFEROBJECTACCESS_HPP_
2 #define VERTEXBUFFEROBJECTACCESS_HPP_
4 #if defined(__APPLE__) || defined(__MACOSX)
5 #include <OpenGL/OpenGL.h>
23 GLuint* getCoordinateVBO()
const;
24 GLuint* getNormalVBO()
const;
25 GLuint* getColorVBO()
const;
26 GLuint* getLineEBO()
const;
27 GLuint* getTriangleEBO()
const;
28 bool hasNormalVBO()
const;
29 bool hasColorVBO()
const;
40 std::shared_ptr<Mesh> mesh
44 typedef std::unique_ptr<VertexBufferObjectAccess>
pointer;
46 GLuint* mCoordinateVBO, *mNormalVBO, *mColorVBO, *mLineEBO, *mTriangleEBO;
47 bool mUseNormalVBO, mUseColorVBO, mUseEBO;
49 std::shared_ptr<Mesh> mMesh;