using loadScene()

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
mikkis
Posts: 64
Joined: Mon Jan 28, 2013 2:38 pm
Location: Fi

using loadScene()

Post by mikkis »

Have problem with using sceneManager->loadScene() method:

Code: Select all

 
    ISceneNode *map;
    sceneManager->loadScene("../media/map1.irr", 0, map);
    map->set ...
 
I want scene to go map -node, but how? Above example doesnt work.
And cant do
map=new ISceneNode();
either.
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: using loadScene()

Post by Mel »

ISceneNode is an abstract class, so you can't instantiate it, you need a class that can be created. For instance, an emptySceneNode, it may act as a root object for other nodes. Just make sure you create it before loading the scene.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Post Reply