This can be used for loading meshes for things like collision detection on dedicated game servers (ie no rendering)
Table of contents
Setup
Copy to clipboard
mRoot = new Root("", "ogre.cfg", "Ogre.log"); new Ogre::DefaultHardwareBufferManager(); Ogre::ResourceGroupManager::getSingleton().addResourceLocation( "resources", "FileSystem", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
Loading the mesh
Copy to clipboard
Ogre::MeshPtr mesh = Ogre::MeshManager::getSingleton().load( "tree1.mesh", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); // do something nefarious with 'mesh'