diff options
Diffstat (limited to 'source/core.h')
| -rw-r--r-- | source/core.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/source/core.h b/source/core.h new file mode 100644 index 0000000..fe9daf9 --- /dev/null +++ b/source/core.h @@ -0,0 +1,34 @@ +#pragma once + +#include <stdint.h> + +typedef int8_t i8; +typedef int16_t i16; +typedef int32_t i32; +typedef int64_t i64; + +typedef uint8_t u8; +typedef uint16_t u16; +typedef uint32_t u32; +typedef uint64_t u64; + +typedef float r32; +typedef double r64; + +typedef int8_t b8; +typedef unsigned char uchar; + +#define internal static + +struct GameState { + u32 triangle_sp; + u32 triangle_vao; + u32 triangle_vbo; + i32 width; + i32 height; +}; + +enum GameEventType { + GAME_EVENT_RESIZE = (1 << 1), + GAME_EVENT_END +}; |
