Add trackball manipulator usage

This commit is contained in:
Robert Osfield 2007-01-05 21:23:37 +00:00
parent fea694a0bf
commit 983e0c7ecc

View File

@ -8,6 +8,7 @@
#include <osgDB/Registry>
#include <osgDB/ReadFile>
#include <osgGA/TrackballManipulator>
#include <osgViewer/Viewer>
#include <osg/Quat>
@ -487,6 +488,8 @@ int main( int argc, char **argv )
std::cout << "setting lens perspective : new "<<original_fov<<" "<<fovy<<std::endl;
}
viewer.setCameraManipulator(new osgGA::TrackballManipulator());
// create the windows and run the threads.
viewer.realize();