Multiple scenemanagers [SOLVED]

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
julescoder
Posts: 34
Joined: Thu Feb 18, 2010 5:24 pm

Multiple scenemanagers [SOLVED]

Post by julescoder »

Hi,
does the call to :

'

Code: Select all

device->getSceneManager() 


get a ptr to a new sceneManager, or is the there only a single instance of the scenemanager.
Last edited by julescoder on Fri Jul 23, 2010 4:17 pm, edited 1 time in total.
slavik262
Posts: 753
Joined: Sun Nov 22, 2009 9:25 pm
Location: Wisconsin, USA

Post by slavik262 »

getSceneManager() returns a pointer to the default scene manager, but you can feel free to create your own. You can pass input to them by calling dvice->setInputReceivingSceneManager().
julescoder
Posts: 34
Joined: Thu Feb 18, 2010 5:24 pm

Post by julescoder »

Thanks for the reply.

Ok, so you mean, calling getSceneManager() first time, returns the default sceneManager.

Then calling it again return a new instance of the sceneMgr ?
julescoder
Posts: 34
Joined: Thu Feb 18, 2010 5:24 pm

Post by julescoder »

Ok. i tried what u said earlier . It creates a new instance. Thanks for your help . :D
Post Reply