Show
Ignore:
Timestamp:
10/22/10 18:44:52 (4 years ago)
Author:
robert
Message:

Added StateSetManipulator? usage

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osganalysis/osganalysis.cpp

    r11849 r11850  
    2424 
    2525#include <osgGA/TrackballManipulator> 
     26#include <osgGA/StateSetManipulator> 
    2627 
    2728#include <osgUtil/IncrementalCompileOperation> 
     
    237238    osgViewer::Viewer viewer(arguments); 
    238239 
    239     viewer.setCameraManipulator(new osgGA::TrackballManipulator()); 
    240     viewer.addEventHandler(new osgViewer::StatsHandler()); 
    241     viewer.addEventHandler(new osgViewer::WindowSizeHandler); 
     240    viewer.setCameraManipulator( new osgGA::TrackballManipulator() ); 
     241    viewer.addEventHandler( new osgViewer::StatsHandler()); 
     242    viewer.addEventHandler( new osgViewer::WindowSizeHandler() ); 
     243    viewer.addEventHandler( new osgGA::StateSetManipulator(viewer.getCamera()->getOrCreateStateSet()) ); 
    242244 
    243245    /////////////////////////////////////////////////////////////////////////////////