Time for action — printing the scene manager's type
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
What just happened?
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 ...
Get Ogre 3D 1.7 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.