Nazz
21-04-2006 19:47:08
I dont know whether this bug is known to the public(if it is you should really fix it), but i'll post this anyway. The bug prevented me from compiling the tutorials - it's in the files "tutorialfps.h" and "tutorialsimple.h" in the chooseSceneManager function. The error i got from my compiler(Visual C++ 2005 Express) was:
First the original function:
..and the fix(taken from the OGRE samples ExampleApplication.h):
Please, excuse me if this mistake was discussed before, i'm just trying to help. Cheers!
Error 1 error C2664: 'Ogre::Root::getSceneManager' : cannot convert parameter 1 from 'Ogre::SceneType' to 'const Ogre::String &' c:\Projects\OGRE\ogrenew\NxOGRE\NxOgre\NxTutorials\Common\tutorialSimple.h 100
First the original function:
void chooseSceneManager(void) {
mSceneMgr = mRoot->getSceneManager(ST_GENERIC);
}
..and the fix(taken from the OGRE samples ExampleApplication.h):
void chooseSceneManager(void) {
mSceneMgr = mRoot->createSceneManager(ST_GENERIC, "ExampleSMInstance");
}
Please, excuse me if this mistake was discussed before, i'm just trying to help. Cheers!