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_opencl.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/render_opencl.h') diff --git a/src/render_opencl.h b/src/render_opencl.h index 51945d5..9bfb4de 100644 --- a/src/render_opencl.h +++ b/src/render_opencl.h @@ -25,10 +25,6 @@ config_t *config_opencl; -cl_double x_min_cl, x_max_cl, y_min_cl, y_max_cl; -cl_double x_min_s_cl, x_max_s_cl, y_min_s_cl, y_max_s_cl; - -float cl_ft; cl_uint *output; cl_device_id device_id; cl_context context; @@ -41,15 +37,10 @@ cl_mem outputBuffer[MAX_DEVICES]; cl_int width_cl; -int t_old_opencl; - d64 zoom_func(d64 ft, d64 s); void init_opencl(config_t *cfg); -void render_opencl(void); +void render_opencl(d64 x_min, d64 y_min, d64 x_max, d64 y_max); void idle_opencl(void); -void idle_opencl_dummy(void); -void keyboard_opencl(unsigned char key, int mouseX, int mouseY); -void mouse_opencl(int button, int state, int x, int y); #endif /* RENDER_OPENCL_H_ */ -- cgit v1.2.1