Added support for CullVisitor to contain a osg::State. This used when
cull Callbacks require the contextID for doing operations on texture objects, for example. Modified CullVisitor SceneView and Drawable
This commit is contained in:
@@ -185,7 +185,7 @@ class SG_EXPORT Drawable : public Object
|
||||
struct CullCallback : public osg::Referenced
|
||||
{
|
||||
/** do customized cull code.*/
|
||||
virtual bool cull(osg::NodeVisitor *visitor, osg::Drawable* drawable) const = 0;
|
||||
virtual bool cull(osg::NodeVisitor *visitor, osg::Drawable* drawable, osg::State *state=NULL) const = 0;
|
||||
};
|
||||
|
||||
/** Set the CullCallback which allows users to attach customize the drawing of existing Drawable object.*/
|
||||
|
||||
Reference in New Issue
Block a user