Added lazy setting of arrays for osg::Geometry using vertex_array_object

This commit is contained in:
Robert Osfield
2016-08-02 12:28:05 +01:00
parent 4b4cd13d31
commit 078598872f
5 changed files with 39 additions and 10 deletions

View File

@@ -147,7 +147,8 @@ public:
void releaseGLObjects();
void setRequiresSetArrays(bool flag) { _requiresSetArrays = flag; }
bool getRequiresSetArrays() const { return _requiresSetArrays; }
public:
@@ -174,6 +175,8 @@ public:
GLBufferObject* _currentVBO;
GLBufferObject* _currentEBO;
bool _requiresSetArrays;
};