Open Source Tomb Raider Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

global.h 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*!
  2. * \file include/global.h
  3. * \brief Global typedefs
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _GLOBAL_H_
  8. #define _GLOBAL_H_
  9. const float BLACK[] = { 0.0f, 0.0f, 0.0f, 1.0f };
  10. const float DIM_WHITE[] = { 0.5f, 0.5f, 0.5f, 1.0f };
  11. const float WHITE[] = { 1.0f, 1.0f, 1.0f, 1.0f };
  12. const float RED[] = { 1.0f, 0.0f, 0.0f, 1.0f };
  13. const float GREEN[] = { 0.0f, 1.0f, 0.0f, 1.0f };
  14. const float NEXT_PURPLE[] = { 0.3f, 0.3f, 0.5f, 1.0f };
  15. const float OR_BLUE[] = { 0.5f, 0.7f, 1.0f, 1.0f };
  16. const float PINK[] = { 1.0f, 0.0f, 1.0f, 1.0f };
  17. const float YELLOW[] = { 1.0f, 1.0f, 0.0f, 1.0f };
  18. const float CYAN[] = { 0.0f, 1.0f, 1.0f, 1.0f };
  19. typedef enum {
  20. menuAction = 0,
  21. consoleAction, // menu and console should always be the first two items
  22. forwardAction,
  23. backwardAction,
  24. leftAction,
  25. rightAction,
  26. jumpAction,
  27. crouchAction,
  28. useAction,
  29. holsterAction,
  30. ActionEventCount // Should always be at the end
  31. } ActionEvents;
  32. typedef enum {
  33. zeroKey = '0', oneKey = '1', twoKey = '2',
  34. threeKey = '3', fourKey = '4', fiveKey = '5',
  35. sixKey = '6', sevenKey = '7', eightKey = '8',
  36. nineKey = '9', aKey = 'a', bKey = 'b',
  37. cKey = 'c', dKey = 'd', eKey = 'e', fKey = 'f',
  38. gKey = 'g', hKey = 'h', iKey = 'i', jKey = 'j',
  39. kKey = 'k', lKey = 'l', mKey = 'm', nKey = 'n',
  40. oKey = 'o', pKey = 'p', qKey = 'q', rKey = 'r',
  41. sKey = 's', tKey = 't', uKey = 'u', vKey = 'v',
  42. wKey = 'w', xKey = 'x', yKey = 'y', zKey = 'z',
  43. quoteKey, backslashKey, backspaceKey, capslockKey,
  44. commaKey, delKey, upKey, downKey, leftKey, rightKey,
  45. endKey, equalsKey, escapeKey, f1Key, f2Key, f3Key, f4Key, f5Key,
  46. f6Key, f7Key, f8Key, f9Key, f10Key, f11Key, f12Key, backquoteKey,
  47. homeKey, insertKey, leftaltKey, leftctrlKey, leftbracketKey,
  48. leftguiKey, leftshiftKey, minusKey, numlockKey, pagedownKey,
  49. pageupKey, pauseKey, dotKey, rightaltKey, rightctrlKey, enterKey,
  50. rightguiKey, rightbracketKey, rightshiftKey, scrolllockKey,
  51. semicolonKey, slashKey, spaceKey, tabKey,
  52. leftmouseKey, middlemouseKey, rightmouseKey,
  53. unknownKey
  54. } KeyboardButton;
  55. #endif