osg::ref_ptr<osgGA::KeySwitchMatrixManipulator> _manipulator;
_manipulator = new osgGA::KeySwitchMatrixManipulator;
_manipulator->addMatrixManipulator( '1', "Trackball", new osgGA::TrackballManipulator() );
_manipulator->addMatrixManipulator( '2', "Flight", new osgGA::FlightManipulator() );
_manipulator->addMatrixManipulator( '3', "Drive", new osgGA::DriveManipulator() );
_manipulator->addMatrixManipulator( '4', "Terrain", new osgGA::TerrainManipulator() );
_manipulator->addMatrixManipulator( '5', "Orbit", new osgGA::OrbitManipulator() );
_manipulator->addMatrixManipulator( '6', "FirstPerson", new osgGA::FirstPersonManipulator() );
_manipulator->addMatrixManipulator( '7', "Spherical", new osgGA::SphericalManipulator() );
// _viewer->setCameraManipulator( _manipulator.get() );
_viewer->setCameraManipulator( new osgGA::TrackballManipulator() );
C++学习(三一四)osg漫游器Manipulator例子
最新推荐文章于 2025-04-29 16:13:12 发布
部署运行你感兴趣的模型镜像
您可能感兴趣的与本文相关的镜像
Qwen-Image-Edit-2509
图片编辑
Qwen
Qwen-Image-Edit-2509 是阿里巴巴通义千问团队于2025年9月发布的最新图像编辑AI模型,主要支持多图编辑,包括“人物+人物”、“人物+商品”等组合玩法
413

被折叠的 条评论
为什么被折叠?



