]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/model/SGClipGroup.cxx
Add preliminary spot light animation
[simgear.git] / simgear / scene / model / SGClipGroup.cxx
index 758a5b6a197de8166918c11499a38770324ecd71..6d2ab7f1920de92c138774f29120f23de8babad8 100644 (file)
@@ -70,8 +70,18 @@ public:
   osg::ref_ptr<osg::RefMatrix> mModelView;
 };
 
-osgUtil::RegisterRenderBinProxy
-SGClipGroup::clipBinProxy("ClipRenderBin", new SGClipGroup::ClipRenderBin);
+struct SGClipGroup::ClipBinRegistrar
+{
+    ClipBinRegistrar()
+    {
+        osgUtil::RenderBin
+            ::addRenderBinPrototype("ClipRenderBin",
+                                    new SGClipGroup::ClipRenderBin);
+    }
+    static ClipBinRegistrar registrar;
+};
+
+SGClipGroup::ClipBinRegistrar SGClipGroup::ClipBinRegistrar::registrar;
 
 class SGClipGroup::CullCallback : public osg::NodeCallback {
 public: