Updated wrappers

This commit is contained in:
Robert Osfield
2008-11-24 10:13:27 +00:00
parent f1b5b75128
commit d7ba995370
4 changed files with 56 additions and 3 deletions

View File

@@ -31,7 +31,12 @@ osg::Node* createInteractiveQuad(const osg::Vec3& origin, osg::Vec3& widthAxis,
texture,
osg::StateAttribute::ON);
pictureQuad->setEventCallback(new osgViewer::InteractiveImageHandler(image));
osg::ref_ptr<osgViewer::InteractiveImageHandler> callback = new osgViewer::InteractiveImageHandler(image);
pictureQuad->setEventCallback(callback.get());
pictureQuad->setCullCallback(callback.get());
osg::Geode* geode = new osg::Geode;
geode->addDrawable(pictureQuad);