一、背景
实现在校园里游览的功能
二、代码
#include<osgViewer/Viewer>
#include<osgDB/ReadFile>
#include<osgViewer/api/win32/GraphicsWindowWin32>
#include<osgGA/TrackballManipulator>
#include<osgEarth/MapNode>
#include<osgEarthUtil/EarthManipulator>
#include<osgEarthUtil/Sky>
#include<osg/MatrixTransform>
#include<osg/ShapeDrawable>
#include<osg/AnimationPath>
#include<osg/CoordinateSystemNode>
#include <osg/PositionAttitudeTransform>
#include <osgEarthUtil/ExampleResources>
#include<osgEarthUtil/Controls>
#include<osgEarthAnnotation/PlaceNode>
//键盘事件
#include<osgViewer/ViewerEventHandlers>
//osgGA相关的库
#include<osgGA/StateSetManipulator>
#include<osgGA/TrackballManipulator>
#include<osgGA/DriveManipulator>
//地形
#include<osgGA/TerrainManipulator>
#include<osgGA/FlightManipulator>
#include<osgGA/KeySwitchMatrixManipulato