O'Reilly logo

Ogre 3D 1.7 by Felix Kerger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required