summaryrefslogtreecommitdiff
path: root/source/core.h
diff options
context:
space:
mode:
authortalha <talha@talhaamir.xyz>2025-11-27 13:18:57 +0500
committertalha <talha@talhaamir.xyz>2025-11-27 13:18:57 +0500
commit0b3d69976819219e71350b6a988d1704fd5f0746 (patch)
tree3511564cb2cb3b10697dc997260479a14540d706 /source/core.h
Added files to git.HEADmain
Current State: - hot reloading - math library (calcify) - triangle rendering (unbatched) - orthographic projection (no camera) - layer isolation setup (platform vs game)
Diffstat (limited to 'source/core.h')
-rw-r--r--source/core.h34
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
+};