12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- /*!
- * \file include/global.h
- * \brief Global typedefs
- *
- * \author xythobuz
- */
- #ifndef _GLOBAL_H_
- #define _GLOBAL_H_
-
- const float BLACK[] = { 0.0f, 0.0f, 0.0f, 1.0f };
- const float DIM_WHITE[] = { 0.5f, 0.5f, 0.5f, 1.0f };
- const float WHITE[] = { 1.0f, 1.0f, 1.0f, 1.0f };
- const float RED[] = { 1.0f, 0.0f, 0.0f, 1.0f };
- const float GREEN[] = { 0.0f, 1.0f, 0.0f, 1.0f };
- const float NEXT_PURPLE[] = { 0.3f, 0.3f, 0.5f, 1.0f };
- const float OR_BLUE[] = { 0.5f, 0.7f, 1.0f, 1.0f };
- const float PINK[] = { 1.0f, 0.0f, 1.0f, 1.0f };
- const float YELLOW[] = { 1.0f, 1.0f, 0.0f, 1.0f };
- const float CYAN[] = { 0.0f, 1.0f, 1.0f, 1.0f };
-
- typedef enum {
- menuAction = 0,
- consoleAction, // menu and console should always be the first two items
- forwardAction,
- backwardAction,
- leftAction,
- rightAction,
- jumpAction,
- crouchAction,
- useAction,
- holsterAction,
-
- ActionEventCount // Should always be at the end
- } ActionEvents;
-
- typedef enum {
- zero = '0', one = '1',
- two = '2', three = '3',
- four = '4', five = '5',
- six = '6', seven = '7',
- eight = '8', nine = '9',
- a = 'a', b = 'b',
- c = 'c', d = 'd',
- e = 'e', f = 'f',
- g = 'g', h = 'h',
- i = 'i', j = 'j',
- k = 'k', l = 'l',
- m = 'm', n = 'n',
- o = 'o', p = 'p',
- q = 'q', r = 'r',
- s = 's', t = 't',
- u = 'u', v = 'v',
- w = 'w', x = 'x',
- y = 'y', z = 'z',
- quote, backslash, backspace, capslock,
- comma, del, up, down, left, right,
- end, equals, escape, f1, f2, f3, f4, f5,
- f6, f7, f8, f9, f10, f11, f12, backquote,
- home, insert, leftalt, leftctrl, leftbracket,
- leftgui, leftshift, minus, numlock, pagedown,
- pageup, pause, dot, rightalt, rightctrl, enter,
- rightgui, rightbracket, rightshift, scrolllock,
- semicolon, slash, space, tab,
- leftmouse, middlemouse, rightmouse,
- unknown
- } KeyboardButton;
-
- typedef struct {
- char *text;
- unsigned int x;
- unsigned int y;
- int w;
- int h;
- float scale;
- float color[4];
- } WindowString;
-
- #endif
|