diff options
Diffstat (limited to 'graphics.h')
| -rw-r--r-- | graphics.h | 27 |
1 files changed, 27 insertions, 0 deletions
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 <stdbool.h> +# include <SDL2/SDL.h> +# 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 |
