include frameStarted in basic tutorial 6

arturo02

12-05-2009 09:56:47

Hi

I'm trying to do a Head Tracking using the Wiimote and I'm using this tutorial http://www.ogre3d.org/wiki/index.php/He ... he_WiiMote. My problem is that this tutorial uses the frameStarted function and I don't know how to use it, Where I can write this function? , What parameters have it?, where I can call it ?, I should use something like this : this.mRoot.FrameStarted += new FrameListener.FrameStartedHandler(FrameStarted); Where? etc
My program is very similar to mogre basic tutorial 6

thanks

AndroidAdam

12-05-2009 22:02:55

You can add a frame listener immediately after the root variable is initialized. Visual studio should automatically generate the method stub for you.

jmix90

15-05-2009 08:55:40

Hello,

Here is the FrameStartedHandler I use (generate by VS with a tab-tab :D ):bool _root_FrameStarted(FrameEvent evt)
{
//Do your things here
return true;
}


Good luck.