From f23764a0ec0b946d9d0c0dd1a2537c0d22849086 Mon Sep 17 00:00:00 2001 From: Charles Date: Sun, 10 May 2020 16:48:37 +0200 Subject: Dynamic factor, everything to double, removed cardioid struct, window resize --- graphics.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 graphics.h (limited to 'graphics.h') diff --git a/graphics.h b/graphics.h new file mode 100644 index 0000000..ca21a98 --- /dev/null +++ b/graphics.h @@ -0,0 +1,27 @@ +#ifndef GRAPHICS_H +# define GRAPHICS_H + +# include +# include +# include "config.h" + +typedef struct +{ + SDL_Window *window; + SDL_Renderer *renderer; + double factor; + double points_num; + struct + { + double x; + double y; + } center; + double radius; + bool running; +} t_state; + +void graphics_init(t_state *state, int width, int height);//, t_cardioid *cardioid); +void graphics_quit(t_state *state); +void graphics_run(t_state *state); + +#endif -- cgit