aboutsummaryrefslogtreecommitdiff
path: root/src/render.h
diff options
context:
space:
mode:
authorLeonard Kugis <leonardkugis@gmail.com>2018-02-01 01:27:30 +0100
committerLeonard Kugis <leonardkugis@gmail.com>2018-02-01 01:27:30 +0100
commit18e5b2554b4cd73207e936e76e32c9d376cd1ba8 (patch)
tree917dba471db5b3c40c78f247a601e8db2d73056b /src/render.h
parentbe4f2582062196dd6ecf393f55566367bc1dfa9f (diff)
abstracted rendering, cpu currently crashing randomly while zooming
Diffstat (limited to 'src/render.h')
-rw-r--r--src/render.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/render.h b/src/render.h
index 5972200..730673c 100644
--- a/src/render.h
+++ b/src/render.h
@@ -18,8 +18,22 @@ config_t *_config;
u32 *s_arr;
GLuint tex;
+d64 x_min, x_max, y_min, y_max;
+d64 x_min_s, x_max_s, y_min_s, y_max_s;
+
+float ft;
+int t_old;
+
d64 zoom_func(d64 ft, d64 s);
+void (*_render)(d64 x_min, d64 y_min, d64 x_max, d64 y_max);
+void (*_idle)(void);
+void keyboard(unsigned char key, int mouseX, int mouseY);
+void mouse(int button, int state, int x, int y);
+void idle_dummy(void);
+void idle(void);
+void render(void);
+
void init_render(config_t *config);
void show_render();