[solved] NxOgre->getScene()

alienskull

05-11-2007 20:01:40

Is there a way I can call a function from a NxOgre::World to get a pointer to a scene, by name possibly?

I see that there is a getScenes() function which points to all of the scenes but I'm not sure how to go from all the scenes to just the one I want.

Maybe I missed something stupid.. not enough sleep.. please show me.

BloodyFanatic

05-11-2007 20:51:48

you can iterate through all scenes returned by World::getScenes and compare with Scene::getName for each scene if it's the scene you wanna get...

you should be able to write the code for this on your own ;)

betajaen

05-11-2007 21:01:31

mWorld->getScenes()->get("SceneName");