コード例 #1
0
std::function<void (int, int, int)> Tutorial::makeSpecialFunc()
{
  switch (_tutorialID) {
  case 1:
  case 2:
  case 3:
  case 4:
  case 5:
  case 6:
  case 7:
  case 8:
  case 9:
  case 10:
  case 11:
  case 12:
  case 13:
    return nullptr; ///< special function only required for tutorials 14 - 16.
  case 14:
  case 15:
  case 16:
    return [ & ](int Key, int , int) {
      OGLDEV_KEY OgldevKey = GLUTKeyToOGLDEVKey(Key);
      _pGameCamera->OnKeyboard(OgldevKey);
    };
  }
  return nullptr;
}
コード例 #2
0
ファイル: glut_backend.cpp プロジェクト: stanhome/OpenGL_Demo
static void specialKeyboardCB(int key, int x, int y)
{
	OGLDEV_KEY ogldevKey = GLUTKeyToOGLDEVKey(key);
	s_pCallbacks->keyboardCB(ogldevKey);
}
コード例 #3
0
static void SpecialKeyboardCB(int Key, int , int )
{
    OGLDEV_KEY OgldevKey = GLUTKeyToOGLDEVKey(Key);
    s_pCallbacks->KeyboardCB(OgldevKey);
}
コード例 #4
0
ファイル: tutorial15.cpp プロジェクト: qunny0/FTools
static void SpecialKeyboardCB(int key, int x, int y)
{
	OGLDEV_KEY ogldevKey = GLUTKeyToOGLDEVKey(key);
	pGameCamera->OnKeyboard(ogldevKey);
}