From 95a9a4362f26820ab268b0cb2ffc259e9adfa867 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 15 May 2005 05:47:14 +0000 Subject: [PATCH] From John Grant, added getDrawableList() const. --- include/osg/Geode | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/osg/Geode b/include/osg/Geode index cc8765de1..f1d1b332d 100644 --- a/include/osg/Geode +++ b/include/osg/Geode @@ -38,6 +38,7 @@ class OSG_EXPORT Geode : public Node META_Node(osg, Geode); + /** Add a \c Drawable to the \c Geode. * If \c drawable is not \c NULL and is not contained in the \c Geode * then increment its reference count, add it to the drawables list and @@ -121,6 +122,9 @@ class OSG_EXPORT Geode : public Node return _drawables.size(); // drawable not found. } + /** Get the list of drawables.*/ + const DrawableList& getDrawableList() const { return _drawables; } + /** Compile OpenGL Display List for each drawable.*/ void compileDrawables(State& state);