diff options
Diffstat (limited to 'header.h')
| -rw-r--r-- | header.h | 25 |
1 files changed, 23 insertions, 2 deletions
@@ -1,9 +1,30 @@ #ifndef HEADER_H # define HEADER_H -#include <complex.h> +# include <stdbool.h> +# include <complex.h> +# include <SDL2/SDL.h> -double mandelbrot_in_set(double complex c); +typedef struct +{ + SDL_Window *window; + SDL_Renderer *renderer; + bool running; +} GState; + +typedef struct +{ + int window_width; + int window_height; +} GConf; + +// mandelbrot.c +double mandelbrot_in_set(double _Complex c); void mandelbrot_print(void); +// graphics.c +GState *graphics_init(GConf *conf); +void graphics_quit(GState *state); +void graphics_run(GState *state); + #endif |
