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:
Don BURNS
2002-07-02 06:22:28 +00:00
parent 0443d4cffa
commit d2aa4270ce
4 changed files with 10 additions and 2 deletions

View File

@@ -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.*/