Ofusion包:
OgreOSMScene.h包含
class TiXmlDocumentPtr : public Ogre::SharedPtr<TiXmlDocument> 的定义
class OSMScene的声明;-->其定义位于OgreOSMScene.cpp
使用Ofusion包,覆盖createScene()方法.
// Create the scene loader
OSMScene oScene;//需要include OgreOSMScene.h
// Create an oE_Loader Callback object to post-process created objects
oSceneCallback oe_Callback; //自己定义的类,继承class OSMSceneCallbacks
// Initialises with the scene to be loaded and the callback if requiered
oScene.initialise("scene.osm", &oe_Callback);
// create and setup the scene in the root node
oScene.createScene();
mSceneMgr = oScene.getSceneManager();
3008

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



