Merge branch 'timoore/clipgroup' into next
This commit is contained in:
commit
7b1d1fd288
@ -70,8 +70,18 @@ public:
|
|||||||
osg::ref_ptr<osg::RefMatrix> mModelView;
|
osg::ref_ptr<osg::RefMatrix> mModelView;
|
||||||
};
|
};
|
||||||
|
|
||||||
osgUtil::RegisterRenderBinProxy
|
struct SGClipGroup::ClipBinRegistrar
|
||||||
SGClipGroup::clipBinProxy("ClipRenderBin", new SGClipGroup::ClipRenderBin);
|
{
|
||||||
|
ClipBinRegistrar()
|
||||||
|
{
|
||||||
|
osgUtil::RenderBin
|
||||||
|
::addRenderBinPrototype("ClipRenderBin",
|
||||||
|
new SGClipGroup::ClipRenderBin);
|
||||||
|
}
|
||||||
|
static ClipBinRegistrar registrar;
|
||||||
|
};
|
||||||
|
|
||||||
|
SGClipGroup::ClipBinRegistrar SGClipGroup::ClipBinRegistrar::registrar;
|
||||||
|
|
||||||
class SGClipGroup::CullCallback : public osg::NodeCallback {
|
class SGClipGroup::CullCallback : public osg::NodeCallback {
|
||||||
public:
|
public:
|
||||||
|
@ -49,10 +49,8 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
class CullCallback;
|
class CullCallback;
|
||||||
class ClipRenderBin;
|
class ClipRenderBin;
|
||||||
|
struct ClipBinRegistrar;
|
||||||
std::vector<osg::ref_ptr<osg::ClipPlane> > mClipPlanes;
|
std::vector<osg::ref_ptr<osg::ClipPlane> > mClipPlanes;
|
||||||
|
|
||||||
static osgUtil::RegisterRenderBinProxy clipBinProxy;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user