yuriythebest
25-08-2008 01:25:03
right I'm at this point here:
however I keep getting the error
and I have no idea how to declare it
Now there's one more thing we want to add to the Application class while we're here: a frame listener. in most demos, they have you create a FrameListener class inherited from ExampleFrameListener. We'll do the same in this demo, but also add a special FrameListener just for updating and debugging the Newton world. First, setup the standard ExampleFrameListener class, in your createFrameListener() function like so:
OgreNewtApplication.cpp
void OgreNewtApplication::createFrameListener()
{
mFrameListener = new ExampleFrameListener( mWindow, mCamera );
mRoot->addFrameListener( mFrameListener );
}
however I keep getting the error
'mFrameListener' : undeclared identifier
and I have no idea how to declare it