aboutsummaryrefslogtreecommitdiffstats
path: root/src/physics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/physics.h')
-rw-r--r--src/physics.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/physics.h b/src/physics.h
index b9a397b..b1fef97 100644
--- a/src/physics.h
+++ b/src/physics.h
@@ -5,6 +5,23 @@
#include <raylib.h>
#include "common.h"
-void register_new_object(object_t object, u32 object_x, u32 object_y);
+typedef struct {
+ shape_t type;
+ Vec2d pos;
+ Vec2d vel;
+ Vec2d acc;
+ float width;
+ float height;
+ Color color;
+} object_t;
+typedef sturct {
+ object_t* object_arr;
+ u16 object_count;
+ size_t capacity;
+} world_t;
+
+void register_new_object(world_t* world, u32 object_x, u32 object_y);
+void delete_object(world_t* world);
+void clear_scene(world_t* world);
#endif // PHYSICS_H