From be4f2582062196dd6ecf393f55566367bc1dfa9f Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Thu, 1 Feb 2018 00:26:36 +0100 Subject: reorganized configs --- src/render_opencl.h | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) (limited to 'src/render_opencl.h') diff --git a/src/render_opencl.h b/src/render_opencl.h index bca77ad..51945d5 100644 --- a/src/render_opencl.h +++ b/src/render_opencl.h @@ -14,6 +14,7 @@ #include #include "sets.h" #include +#include "config.h" #define OPENCL_FPU_32 0 #define OPENCL_FPU_64 1 @@ -22,25 +23,7 @@ #define MAX_SOURCE_SIZE 0xFFFF // 64 KiB #define MAX_DEVICES 4 -typedef struct config_opencl { - u8 fpu; - u8 fma; - GLuint tex; - d64 (*zoom_func)(d64, d64); - u8 set_func; // id, not pointer! - u32 *arr; - u32 iterations; - u32 colorFrom; - u32 colorTo; - d64 to_x; - d64 to_y; - d64 speed; - u16 width; - u16 height; - u8 renderFPS; -} OpenCLConfig; - -OpenCLConfig *config_opencl; +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; @@ -62,7 +45,7 @@ int t_old_opencl; d64 zoom_func(d64 ft, d64 s); -void init_opencl(OpenCLConfig *config); +void init_opencl(config_t *cfg); void render_opencl(void); void idle_opencl(void); void idle_opencl_dummy(void); -- cgit v1.2.1