Added record path manipulator
This commit is contained in:
parent
41efd25660
commit
5b263f583f
@ -516,7 +516,7 @@ int main(int argc, char** argv)
|
|||||||
|
|
||||||
|
|
||||||
// construct the viewer.
|
// construct the viewer.
|
||||||
osgViewer::Viewer viewer;
|
osgViewer::Viewer viewer(arguments);
|
||||||
|
|
||||||
// if user request help write it out to cout.
|
// if user request help write it out to cout.
|
||||||
if (arguments.read("-h") || arguments.read("--help"))
|
if (arguments.read("-h") || arguments.read("--help"))
|
||||||
@ -577,6 +577,8 @@ int main(int argc, char** argv)
|
|||||||
// add stats
|
// add stats
|
||||||
viewer.addEventHandler( new osgViewer::StatsHandler() );
|
viewer.addEventHandler( new osgViewer::StatsHandler() );
|
||||||
|
|
||||||
|
// add the record camera path handler
|
||||||
|
viewer.addEventHandler(new osgViewer::RecordCameraPathHandler);
|
||||||
|
|
||||||
|
|
||||||
osg::ref_ptr<osgShadow::ShadowedScene> shadowedScene = new osgShadow::ShadowedScene;
|
osg::ref_ptr<osgShadow::ShadowedScene> shadowedScene = new osgShadow::ShadowedScene;
|
||||||
|
Loading…
Reference in New Issue
Block a user