X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscene%2Ftgdb%2FGroundLightManager.hxx;h=2da72bc4f6242a7345411611fc5bfaf2f2d9fdeb;hb=3b5665fe92802d3d36d6304cb2c184dc03e91de4;hp=f9bfdf792343102c659ab4ca9021490b9873cb1d;hpb=68c1cfed46fd65d3a1a8f60311f5394ebc68e574;p=simgear.git diff --git a/simgear/scene/tgdb/GroundLightManager.hxx b/simgear/scene/tgdb/GroundLightManager.hxx index f9bfdf79..2da72bc4 100644 --- a/simgear/scene/tgdb/GroundLightManager.hxx +++ b/simgear/scene/tgdb/GroundLightManager.hxx @@ -22,11 +22,14 @@ #include #include #include + + +#include #include namespace simgear { -class GroundLightManager : public osg::Referenced { +class GroundLightManager : public ReferencedSingleton { public: GroundLightManager(); osg::StateSet* getRunwayLightStateSet() { return runwayLightSS.get(); } @@ -36,7 +39,6 @@ public: // so use it. void update (const SGUpdateVisitor* updateVisitor); unsigned getLightNodeMask(const SGUpdateVisitor* updateVisitor); - static GroundLightManager* instance(); protected: osg::ref_ptr runwayLightSS; osg::ref_ptr taxiLightSS;