Added camera event callback support into osgViewer

This commit is contained in:
Robert Osfield
2007-05-27 17:29:29 +00:00
parent a49ec6e78d
commit 784383ac08
6 changed files with 107 additions and 15 deletions

View File

@@ -628,6 +628,11 @@ int main(int argc, char **argv)
unsigned int testCase = 0;
if (arguments.read("-t", testCase)) {}
osgSim::OverlayNode::OverlayTechnique technique = osgSim::OverlayNode::OBJECT_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY;
while (arguments.read("--object")) technique = osgSim::OverlayNode::OBJECT_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY;
while (arguments.read("--ortho") || arguments.read("--orthographic")) technique = osgSim::OverlayNode::VIEW_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY;
while (arguments.read("--persp") || arguments.read("--perspective")) technique = osgSim::OverlayNode::VIEW_DEPENDENT_WITH_PERSPECTIVE_OVERLAY;
// if user request help write it out to cout.
if (arguments.read("-h") || arguments.read("--help"))