Added WindowSizeHandler to osgmanipulator example
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14827 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
parent
70b5297575
commit
595a048319
@ -19,6 +19,7 @@
|
||||
#include <osgDB/ReadFile>
|
||||
#include <osgUtil/Optimizer>
|
||||
#include <osgViewer/Viewer>
|
||||
#include <osgViewer/ViewerEventHandlers>
|
||||
#include <osg/CoordinateSystemNode>
|
||||
#include <osgText/Text>
|
||||
|
||||
@ -106,8 +107,8 @@ osgManipulator::Dragger* createDragger(const std::string& name)
|
||||
{
|
||||
osgManipulator::TrackballDragger* d = new osgManipulator::TrackballDragger();
|
||||
d->setupDefaultGeometry();
|
||||
d->setAxisLineWidth(5.0f);
|
||||
d->setPickCylinderHeight(0.1f);
|
||||
//d->setAxisLineWidth(5.0f);
|
||||
//d->setPickCylinderHeight(0.1f);
|
||||
dragger = d;
|
||||
}
|
||||
else if ("Translate1DDragger" == name)
|
||||
@ -399,6 +400,9 @@ int main( int argc, char **argv )
|
||||
// construct the viewer.
|
||||
osgViewer::Viewer viewer;
|
||||
|
||||
// add the window size toggle handler
|
||||
viewer.addEventHandler(new osgViewer::WindowSizeHandler);
|
||||
|
||||
// get details on keyboard and mouse bindings used by the viewer.
|
||||
viewer.getUsage(*arguments.getApplicationUsage());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user