Added missing HelpHandler::reset() implementation

This commit is contained in:
Robert Osfield
2007-05-07 19:48:46 +00:00
parent cf3d6da69b
commit 6716f0d845

View File

@@ -28,6 +28,13 @@ HelpHandler::HelpHandler(osg::ApplicationUsage* au):
_camera = new osg::Camera;
}
void HelpHandler::reset()
{
_initialized = false;
_camera->setGraphicsContext(0);
}
bool HelpHandler::handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa)
{
osgViewer::Viewer* viewer = dynamic_cast<osgViewer::Viewer*>(&aa);