aboutsummaryrefslogtreecommitdiff
path: root/header.h
diff options
context:
space:
mode:
Diffstat (limited to 'header.h')
-rw-r--r--header.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/header.h b/header.h
index 855cff3..97e3de6 100644
--- a/header.h
+++ b/header.h
@@ -5,6 +5,18 @@
# include <complex.h>
# include <SDL2/SDL.h>
+# define WINDOW_W 500
+# define WINDOW_H 500
+
+# define LO -1.5
+# define HI 1.5
+# define AXIS_DIV 46.0
+# define AXIS_STEP ((HI - LO) / AXIS_DIV)
+
+# define MAX_ITERATION 50
+# define _INFINITY 15
+
+
typedef struct
{
SDL_Window *window;
@@ -27,4 +39,7 @@ GState *graphics_init(GConf *conf);
void graphics_quit(GState *state);
void graphics_run(GState *state);
+// helper.c
+double map_range(double x, double src_lo, double src_hi, double dest_lo, double dest_hi);
+
#endif