diff options
Diffstat (limited to 'source/game/game.h')
| -rw-r--r-- | source/game/game.h | 22 |
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 |
