diff options
author | Leonard Kugis <leonardkugis@gmail.com> | 2018-01-28 22:26:04 +0100 |
---|---|---|
committer | Leonard Kugis <leonardkugis@gmail.com> | 2018-01-28 22:26:04 +0100 |
commit | cc884ee71f017d9493da22565fc33e6828da123d (patch) | |
tree | 33f97802d7f1461155d34fed0da2cfe1fe657945 /src/render_opencl.h | |
parent | da4b72ea58e97d14306cfd322a8ef7a40337645d (diff) |
Added point and click functionality
Diffstat (limited to 'src/render_opencl.h')
-rw-r--r-- | src/render_opencl.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/render_opencl.h b/src/render_opencl.h index 720678b..bca77ad 100644 --- a/src/render_opencl.h +++ b/src/render_opencl.h @@ -42,8 +42,8 @@ typedef struct config_opencl { OpenCLConfig *config_opencl; -d64 x_min, x_max, y_min, y_max; -d64 x_min_s, x_max_s, y_min_s, y_max_s; +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; @@ -58,10 +58,15 @@ cl_mem outputBuffer[MAX_DEVICES]; cl_int width_cl; +int t_old_opencl; + d64 zoom_func(d64 ft, d64 s); void init_opencl(OpenCLConfig *config); void render_opencl(void); 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_ */ |