Add trackball manipulator usage
This commit is contained in:
parent
fea694a0bf
commit
983e0c7ecc
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user