Hi Pedro,

On 24/01/12 12:36 , Pedro Ribeiro wrote:
> Hi everyone, i'm newbie in osg, trying to learn from the osg tutorials. Now 
> i'm trying
> to implement tutorial 9.1 (Basic Keyboard Input) that allow the tank to move 
> forward,
> started with Tutorial 9 from NPS that allow a tank to rotate his gun.
> 
> I tried to follow the tutorial step by step,i t seems that i'm close but i'm 
> getting 2 erros when compiling:
> 
> 1>.\testKeyboard.cpp(35) : error C2061: syntax error : identifier 
> 'tankInputDeviceStateType'
> 1>.\testKeyboard.cpp(35) : fatal error C1903: unable to recover from previous 
> error(s); stopping compilation
> 
> refering to tankInputDeviceStateType that is present in 
> myKeyboardEventHandler class:
> 
> Code:
> 
> class myKeyboardEventHandler : public osgGA::GUIEventHandler
>       {
>       public:
>               myKeyboardEventHandler(tankInputDeviceStateType* tids)
>               {
>                       tankInputDeviceState = tids;
>               }

That is really a question specific to that tutorial and not related to OSG, so 
it's not
terribly likely that we can help you with that.

I'd guess that maybe you're missing an #include for a definition of the
'tankInputDeviceStateType' type.

Cheers,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to