From Jean-Sebastien Guay, "I've added a second ctor where no argument is optional, and documented that it's meant to be used when the InteractiveImage is going to be used in a fullscreen HUD.

"
This commit is contained in:
Robert Osfield
2010-09-09 09:47:31 +00:00
parent 60942d8e72
commit 77c35eabde
3 changed files with 50 additions and 5 deletions

View File

@@ -418,7 +418,7 @@ int main(int argc, char **argv)
root->addChild(overlay);
osgViewer::InteractiveImageHandler* handler = new osgViewer::InteractiveImageHandler(widgetImage.get(), camera);
osgViewer::InteractiveImageHandler* handler = new osgViewer::InteractiveImageHandler(widgetImage.get(), texture, camera);
quad->setEventCallback(handler);
quad->setCullCallback(handler);
}