What is the best way to separate scenes?
Posted: Wed Sep 19, 2007 6:53 pm
Hi all.
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:
...and ther render it(smgr and guienv).
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) ?
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) ?