I want to use one IrrlichtDevice and IrrlichtDriver. And many ISceneManager, IGUIEnvironment.
So, in main cycle I want to change sceneManager and guiEnv from another class with another scene. I do it so:
Code: Select all
static public void changeActiveScene(ISceneManager newScene, IGUIEnvironment newGUIEnv)
{
smgr = newScene;
guienv = newGUIEnv;
}
But I got one general scene with all nodes from all scenes.
So, what is the best way to separate scenes(game and menu for example) ?