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.
julescoder
Posts: 34 Joined: Thu Feb 18, 2010 5:24 pm
Post
by julescoder » Fri Jul 23, 2010 4:04 pm
Hi,
does the call to :
'
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 » Fri Jul 23, 2010 4:06 pm
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 » Fri Jul 23, 2010 4:12 pm
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 » Fri Jul 23, 2010 4:17 pm
Ok. i tried what u said earlier . It creates a new instance. Thanks for your help .