Page 1 of 1

createSceneManager deprecated warning

Posted: Mon Nov 05, 2018 8:09 pm
by libolt
Ogre Version: 1.11 :?:
Operating System: Windows 10 :?:
Render System:GL :?:

I have used createSceneManager in my code since the early 1.x days. More recently I have been getting a compiler warning that it is deprecated. Is there a replacement I should be using or a different way of doing things? Below is how I currently use it in my game.

Code: Select all

    mSceneMgr = sharedPtr<Ogre::SceneManager>(RERoot->createSceneManager(Ogre::ST_GENERIC)); // creates the scene manager

Re: createSceneManager deprecated warning

Posted: Tue Nov 06, 2018 10:46 am
by paroj
yes, use any of the other two overloads: https://ogrecave.github.io/ogre/api/lat ... 9278c1b0f9