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.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. zero = '0', one = '1',
  34. two = '2', three = '3',
  35. four = '4', five = '5',
  36. six = '6', seven = '7',
  37. eight = '8', nine = '9',
  38. a = 'a', b = 'b',
  39. c = 'c', d = 'd',
  40. e = 'e', f = 'f',
  41. g = 'g', h = 'h',
  42. i = 'i', j = 'j',
  43. k = 'k', l = 'l',
  44. m = 'm', n = 'n',
  45. o = 'o', p = 'p',
  46. q = 'q', r = 'r',
  47. s = 's', t = 't',
  48. u = 'u', v = 'v',
  49. w = 'w', x = 'x',
  50. y = 'y', z = 'z',
  51. quote, backslash, backspace, capslock,
  52. comma, del, up, down, left, right,
  53. end, equals, escape, f1, f2, f3, f4, f5,
  54. f6, f7, f8, f9, f10, f11, f12, backquote,
  55. home, insert, leftalt, leftctrl, leftbracket,
  56. leftgui, leftshift, minus, numlock, pagedown,
  57. pageup, pause, dot, rightalt, rightctrl, enter,
  58. rightgui, rightbracket, rightshift, scrolllock,
  59. semicolon, slash, space, tab,
  60. leftmouse, middlemouse, rightmouse,
  61. unknown
  62. } KeyboardButton;
  63. typedef struct {
  64. char *text;
  65. unsigned int x;
  66. unsigned int y;
  67. int w;
  68. int h;
  69. float scale;
  70. float color[4];
  71. } WindowString;
  72. #endif