From 1efdb8ab18042d9efc7c2e6addf7f414fbee5590 Mon Sep 17 00:00:00 2001 From: kotorifan Date: Tue, 21 Apr 2026 19:55:51 +0200 Subject: Added graphics functions --- src/physics.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'src/physics.h') 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 #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 -- cgit v1.3