aboutsummaryrefslogtreecommitdiff
path: root/header.h
diff options
context:
space:
mode:
Diffstat (limited to 'header.h')
-rw-r--r--header.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/header.h b/header.h
index e46ce7e..855cff3 100644
--- a/header.h
+++ b/header.h
@@ -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