We are using the previous code as always for the following:
Printing the type and name of the scene manager using the
createScene()
function:std::cout << mSceneMgr->getTypeName() << "::" << mSceneMgr->getName() << std::endl;
Compiling and running the application. When the application has started to look into the console, there should be the following line:
OctreeSceneManager::ExampleSMInstance
We added a line which prints the type and name of the SceneManager
. In this case, the scene manager's name is ExampleSMInstance
, which is a straightforward name for a scene manger used in the example application. SM stands for Scene Manager, if you haven't guessed it. The more interesting part is the type, which in this case is OctreeSceneManager
. Before we go into detail on what an OctreeSceneManager
is, let's discuss what a scene manager in general does for Ogre 3D.