Deprecated dirtyDisplayLists(), use established dirtyGLObjects() instead

This commit is contained in:
Robert Osfield
2017-12-18 13:54:08 +00:00
parent 3bb327e93f
commit d2bfde30f0
11 changed files with 42 additions and 43 deletions

View File

@@ -235,9 +235,13 @@ class OSG_EXPORT Drawable : public Node
/** Return whether to use a local VertexArrayObject for this Drawable.*/
bool getUseVertexArrayObject() const { return _useVertexArrayObject; }
#ifdef OSG_USE_DEPRECATED_API
/** Deprecated, use dirtyGLObjects() instead. */
virtual void dirtyDisplayList();
inline void dirtyDisplayList()
{
dirtyGLObjects();
}
#endif
/** Force a recompile on next draw() of any OpenGL objects associated with this geoset.*/
virtual void dirtyGLObjects();
@@ -362,7 +366,7 @@ class OSG_EXPORT Drawable : public Node
};
/** Set the DrawCallback which allows users to attach customize the drawing of existing Drawable object.*/
virtual void setDrawCallback(DrawCallback* dc) { _drawCallback=dc; dirtyDisplayList(); }
virtual void setDrawCallback(DrawCallback* dc) { _drawCallback=dc; dirtyGLObjects(); }
/** Get the non const DrawCallback.*/
DrawCallback* getDrawCallback() { return _drawCallback.get(); }