From 6b2e17fe142cc05a9746ffe9896fee4f7f7dfed4 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 10 Sep 2004 08:26:53 +0000 Subject: [PATCH] Made update, cull and draw callbacks virtual to allow custom Drawable's to there own specific extensions for handling callbacks --- include/osg/Drawable | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/osg/Drawable b/include/osg/Drawable index ab68e52ab..04ec9071b 100644 --- a/include/osg/Drawable +++ b/include/osg/Drawable @@ -275,7 +275,7 @@ class SG_EXPORT Drawable : public Object }; /** Set the UpdateCallback which allows users to attach customize the updating of an object during the update traversal.*/ - void setUpdateCallback(UpdateCallback* ac); + virtual void setUpdateCallback(UpdateCallback* ac); /** Get the non const UpdateCallback.*/ UpdateCallback* getUpdateCallback() { return _updateCallback.get(); } @@ -297,7 +297,7 @@ class SG_EXPORT Drawable : public Object }; /** Set the CullCallback which allows users to customize the culling of Drawable during the cull traversal.*/ - void setCullCallback(CullCallback* cc) { _cullCallback=cc; } + virtual void setCullCallback(CullCallback* cc) { _cullCallback=cc; } /** Get the non const CullCallback.*/ CullCallback* getCullCallback() { return _cullCallback.get(); } @@ -326,7 +326,7 @@ class SG_EXPORT Drawable : public Object }; /** Set the DrawCallback which allows users to attach customize the drawing of existing Drawable object.*/ - void setDrawCallback(DrawCallback* dc) { _drawCallback=dc; dirtyDisplayList(); } + virtual void setDrawCallback(DrawCallback* dc) { _drawCallback=dc; dirtyDisplayList(); } /** Get the non const DrawCallback.*/ DrawCallback* getDrawCallback() { return _drawCallback.get(); }