From 18e5b2554b4cd73207e936e76e32c9d376cd1ba8 Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Thu, 1 Feb 2018 01:27:30 +0100 Subject: abstracted rendering, cpu currently crashing randomly while zooming --- src/render.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/render.h') 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(); -- cgit v1.2.1