码迷,mamicode.com
首页 > 其他好文 > 详细

添加OSG各种事件处理器

时间:2016-12-03 18:34:48      阅读:534      评论:0      收藏:0      [点我收藏+]

标签:tor   ati   handler   create   screen   cat   help   lods   app   

// add the state manipulator
viewer.addEventHandler( new osgGA::StateSetManipulator(viewer.getCamera()->getOrCreateStateSet()) );

// add the thread model handler
viewer.addEventHandler(new osgViewer::ThreadingHandler);

// add the window size toggle handler
viewer.addEventHandler(new osgViewer::WindowSizeHandler);

// add the stats handler
viewer.addEventHandler(new osgViewer::StatsHandler);

// add the help handler
viewer.addEventHandler(new osgViewer::HelpHandler(arguments.getApplicationUsage()));

// add the record camera path handler
viewer.addEventHandler(new osgViewer::RecordCameraPathHandler);

// add the LOD Scale handler
viewer.addEventHandler(new osgViewer::LODScaleHandler);

// add the screen capture handler
viewer.addEventHandler(new osgViewer::ScreenCaptureHandler);

添加OSG各种事件处理器

标签:tor   ati   handler   create   screen   cat   help   lods   app   

原文地址:http://www.cnblogs.com/coolbear/p/6129156.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!