I'm trying to integrate it in my old and horrible framework with frame listeners and inheritance galore. No luck so far -- I guess it's most probably to do with inheritance, but I'm not quite sure how your functions work.
It builds fine, but crashes at this line (in the constructor of MainFrameListener):
Code: Select all
geom->create(mWindow->getWidth(), mWindow->getHeight(), Ogre::PF_FLOAT32_RGBA);
sseffect.cpp
Code: Select all
cam = qr.cam->getSceneManager()->createCamera(name + "_cam");
Code: Select all
-->>OpenRacer.exe!SSEffect::create(unsigned int w=1024, unsigned int h=768, Ogre::PixelFormat pf=PF_FLOAT32_RGBA) Line 138 + 0x8 bytes C++
OpenRacer.exe!Geom::create(unsigned int w=1024, unsigned int h=768, Ogre::PixelFormat pf=PF_FLOAT32_RGBA) Line 19 C++
OpenRacer.exe!MainFrameListener::MainFrameListener(Ogre::RenderWindow * win=0x013eff98, Ogre::Camera * cam=0x01408010, Ogre::SceneManager * sceneMgr=0x013fe8f0, bool bufferedKeys=false, bool bufferedMouse=false, bool bufferedJoy=false) Line 142 + 0x21 bytes C++
Is it trying to find the application's scene manager and failing?- cam
+ mSceneMgr | CXX0030: Error: expression cannot be evaluated
- qr
+ quad | CXX0030: Error: expression cannot be evaluated
+ cam | CXX0030: Error: expression cannot be evaluated
I'm too lazy to figure it out, so I was hoping you'd have a magical answer before I begin scratching my head.