cegui/ogrenew

misterface

29-03-2006 20:19:46

I trying to use code the of example 6 of the ogre tutorials (http://www.ogre3d.org/wiki/index.php/Basic_Tutorial_6)
I'm implementing it in a ogrenew demo.

The tutorial says following:

Reacting to Events

Add to TutorialApplication as public functions:



bool OgreNewtonApplication::handleQuit(const CEGUI::EventArgs& e)
{
static_cast<GuiFrameListener*>(mFrameListener)->requestShutdown();
return true;
}


but this gives following error:


Error error C2061: syntax error : identifier 'GuiFrameListener' c:\eindwerk\Ogre\ogreaddons\OgreNewt\demos\Demo05_SimpleVehicle\OgreNewtonApplication.cpp 255


anyone? :?
(you can find the full code in http://www.ogre3d.org/wiki/index.php/Basic_Tutorial_6

haffax

30-03-2006 12:37:41

Looks like you're missing the include to your header defining GuiFrameListener.