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/game/game.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 source/game/game.h (limited to 'source/game/game.h') diff --git a/source/game/game.h b/source/game/game.h new file mode 100644 index 0000000..4c6f1f2 --- /dev/null +++ b/source/game/game.h @@ -0,0 +1,20 @@ +#ifndef AMR_GAME_H +#define AMR_GAME_H + +#include +#include "../core.h" +#include "../calcify.h" + +#ifdef _WIN32 + #define EXPORT __declspec(dllexport) +#else + #define EXPORT __attribute__((visibility("default"))) +#endif + +extern "C" { + EXPORT void game_handle_event(GameState *state, GameEventType type); + EXPORT void game_setup(GameState *state); + EXPORT void game_update_and_render(GameState *state); +} + +#endif // AMR_GAME_H -- cgit v1.2.3