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/graphics.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/graphics.h') diff --git a/src/graphics.h b/src/graphics.h index e9ea1fd..65c2ddc 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -3,7 +3,16 @@ #define GRAPHICS_H #include +#include #include "common.h" -void create_new_object(object_t object); +void init_graphics(uint32_t x, uint32_t y, const char* title); +void close_graphics(void) +void begin_graphics_drawing(void); +void end_graphics_drawing(void); +void clear_graphics(const Color color); +void draw_graphics_object(const object_t* obj, Color color); +void draw_graphics_objects(const object_t* world, uint32_t count, Color color); +void draw_graphics_info(uint32_t fps, uint32_t objs, uint32_t max_objs); +bool should_close_graphics(void); #endif // GRAPHICS_H -- cgit v1.3