Added support for clean up Vertex Array Objects

This commit is contained in:
Robert Osfield
2016-08-03 20:12:20 +01:00
parent 4131d2da34
commit a4e682bb28
3 changed files with 131 additions and 20 deletions

View File

@@ -134,9 +134,6 @@ public:
/** Disable all the vertex attributes that have been marked as to be disabled.*/
void applyDisablingOfVertexAttributes(osg::State& state);
// Verex Array Object methods.
void generateVretexArrayObject();
@@ -144,14 +141,15 @@ public:
void unbindVertexArrayObject() const;
GLint getVertexArrayObject() const { return _vertexArrayObject; }
void deleteVertexArrayObject();
void releaseGLObjects();
GLint getVertexArrayObject() const { return _vertexArrayObject; }
void setRequiresSetArrays(bool flag) { _requiresSetArrays = flag; }
bool getRequiresSetArrays() const { return _requiresSetArrays; }
void release();
public: