From 0b3d69976819219e71350b6a988d1704fd5f0746 Mon Sep 17 00:00:00 2001 From: talha Date: Thu, 27 Nov 2025 13:18:57 +0500 Subject: Added files to git. Current State: - hot reloading - math library (calcify) - triangle rendering (unbatched) - orthographic projection (no camera) - layer isolation setup (platform vs game) --- source/core.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 source/core.h (limited to 'source/core.h') 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 + +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 +}; -- cgit v1.2.3