Clean up of initialization of statics/use of getenv

This commit is contained in:
Robert Osfield
2010-03-11 16:46:01 +00:00
parent 9ab856323d
commit 6c07be375c
4 changed files with 13 additions and 39 deletions

View File

@@ -169,26 +169,6 @@ class OSGUTIL_EXPORT RenderBin : public osg::Object
};
/** Proxy class for automatic registration of renderbins with the RenderBin prototypelist.*/
class RegisterRenderBinProxy
{
public:
RegisterRenderBinProxy(const std::string& binName,RenderBin* proto)
{
_rb = proto;
RenderBin::addRenderBinPrototype(binName,_rb.get());
}
~RegisterRenderBinProxy()
{
RenderBin::removeRenderBinPrototype(_rb.get());
}
protected:
osg::ref_ptr<RenderBin> _rb;
};
}
#endif