Home > Software engineering >  OpenGL calls glutKeyboardFunc (the rid_device_info_keyboard) function type arguments (void (COpen: :
OpenGL calls glutKeyboardFunc (the rid_device_info_keyboard) function type arguments (void (COpen: :

Time:10-11

In the MFC class defined in a keyboard response function the rid_device_info_keyboard (); Then through glutKeyboardFunc (the rid_device_info_keyboard) calls, types are not compatible, ask why?

CodePudding user response:

https://www.baidu.com/s? Wd=glutKeyboardFunc

CodePudding user response:

void KeyboardFunc (unsigned char key, int x, int y)
{
The switch (key) {
  • Related