joaopccosta
15-02-2011 16:10:10
Greetings. I've ported my app from nxoger 1.6 to 1.7... and now i'm having quite some problems getting the visual debugger to work.
I create it this way... now how i can't really figure out how i can make it work like a toggle switch, turning it on or off.
Can anyone help? Thanks
mRenderSystem = new Critter::RenderSystem(mScene, mSceneMgr);
mVisualDebugger = new NxOgre::VisualDebugger(mWorld);
I create it this way... now how i can't really figure out how i can make it work like a toggle switch, turning it on or off.
if(evt.key == OIS::KC_B){
if(mRenderSystem->hasDebugVisualisation())
mVisualDebugger->disable();
else{
mVisualDebugger->enable();
mVisualDebugger->draw();
}
}
Can anyone help? Thanks