refactor vao object to use acutal OpenGL IDs rather than object pointers

This commit is contained in:
Konstantin Käfer
2014-08-15 13:37:19 +02:00
parent a81c2efba2
commit ba67fcd830
18 changed files with 123 additions and 77 deletions

View File

@@ -25,6 +25,11 @@ public:
*/
void bind();
/*
* Returns the OpenGL ID of the buffer object.
*/
uint32_t getID() const;
private:
const std::vector<vertex_type> array;
uint32_t buffer = 0;