I have the following problem… I did a class called Keyboard
having functions inputKey and myKeyboard.
I made an object of that class (Keyboard k) in the main
when I tried to do the following:
I get an error : left of ‘.inputKey’ must have class/struct/union
when I tried
I get another error: ‘glutSpecialFunc’ : cannot convert parameter 1 from ‘void (__thiscall Keyboard::* )(int,int,int)’ to ‘void (__cdecl *)(int,int,int)’
does anyone have a solution for this?
I need to call the functions I did in the class keyboard into glutSpecialFunc and glutKeyboardFunc
Thank you in advance