summaryrefslogtreecommitdiff
path: root/source/game/game.h
diff options
context:
space:
mode:
authortalha <talha@talhaamir.xyz>2025-12-29 13:45:53 +0500
committertalha <talha@talhaamir.xyz>2025-12-29 13:45:53 +0500
commit9044db4794e95ef9dbc2d5bfde4215ddc82d6ae8 (patch)
treea63784ac600579006a650c49f30d6d2f94b6905f /source/game/game.h
parent0b3d69976819219e71350b6a988d1704fd5f0746 (diff)
added 2d "meshes"HEADmain
Diffstat (limited to 'source/game/game.h')
-rw-r--r--source/game/game.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/source/game/game.h b/source/game/game.h
index 4c6f1f2..6cd5d56 100644
--- a/source/game/game.h
+++ b/source/game/game.h
@@ -12,9 +12,29 @@
#endif
extern "C" {
+ EXPORT void game_init(GameState *state);
+ EXPORT void game_shader_init_uniforms(GameState *state);
EXPORT void game_handle_event(GameState *state, GameEventType type);
- EXPORT void game_setup(GameState *state);
EXPORT void game_update_and_render(GameState *state);
}
+struct Point {
+ i32 id;
+ b8 active;
+ Vec2 prev_pos;
+ Vec2 curr_pos;
+ Vec2 force;
+ i32 constraints[4];
+};
+typedef struct Point Point;
+
+#define NUM_POINTS 1024
+struct Cloth {
+ i32 width;
+ r32 elasticity;
+ r32 padding;
+ Point points[NUM_POINTS];
+};
+typedef struct Cloth Cloth;
+
#endif // AMR_GAME_H