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 --- inc/cardioid.h | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 inc/cardioid.h (limited to 'inc/cardioid.h') diff --git a/inc/cardioid.h b/inc/cardioid.h deleted file mode 100644 index 23ba64a..0000000 --- a/inc/cardioid.h +++ /dev/null @@ -1,27 +0,0 @@ -#ifndef CARDIOID_H -# define CARDIOID_H - -# include -# include - -typedef struct -{ - size_t points_num; - SDL_Point *points; - SDL_Point center; - size_t radius; - // double multiplication; -} t_cardioid; - -# define MIN(x, y) ((x) < (y) ? (x) : (y)) - -# define CARDIOID_ADD_POINTS(cardioid, n) cardioid_update_points((cardioid), (cardioid)->points_num + (n)) -# define CARDIOID_SUB_POINTS(cardioid, n) \ - cardioid_update_points((cardioid), (cardioid)->points_num < (n) ? 0 : (cardioid)->points_num - (n)) - -int cardioid_init(t_cardioid *cardioid, size_t points_num, int width, int height); -int cardioid_update_window(t_cardioid *cardioid, int width, int height); -int cardioid_update_points(t_cardioid *cardioid, size_t points_num); -void cardioid_quit(t_cardioid *cardioid); - -#endif -- cgit