diff options
| author | talha <talha@talhaamir.xyz> | 2025-11-27 13:18:57 +0500 |
|---|---|---|
| committer | talha <talha@talhaamir.xyz> | 2025-11-27 13:18:57 +0500 |
| commit | 0b3d69976819219e71350b6a988d1704fd5f0746 (patch) | |
| tree | 3511564cb2cb3b10697dc997260479a14540d706 /source/game/game.h | |
Current State:
- hot reloading
- math library (calcify)
- triangle rendering (unbatched)
- orthographic projection (no camera)
- layer isolation setup (platform vs game)
Diffstat (limited to 'source/game/game.h')
| -rw-r--r-- | source/game/game.h | 20 |
1 files changed, 20 insertions, 0 deletions
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 <glad/glad.h> +#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 |
