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_cpu.h | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'src/render_cpu.h') diff --git a/src/render_cpu.h b/src/render_cpu.h index 7469ca2..0fc75eb 100644 --- a/src/render_cpu.h +++ b/src/render_cpu.h @@ -15,26 +15,10 @@ #include #include #include +#include "config.h" #define COORDS(x, y, width) ((y)*(width)+(x)) -typedef struct config_cpu { - u8 threads; - GLuint tex; - u32 *arr; - d64 (*zoom_func)(d64, d64); - u32 (*set_func)(d64, d64, u32); - u32 iterations; - u32 colorFrom; - u32 colorTo; - d64 to_x; - d64 to_y; - d64 speed; - u16 width; - u16 height; - u8 renderFPS; -} CpuConfig; - typedef struct t_args { u8 tc; u8 tid; @@ -46,7 +30,7 @@ typedef struct t_args { u32 *arr; } ThreadArgs; -CpuConfig *config_cpu; +config_t *config_cpu; u32 rendercnt; float ft; int t_old_cpu; @@ -54,7 +38,7 @@ int t_old_cpu; d64 x_min, x_max, y_min, y_max; d64 x_min_s, x_max_s, y_min_s, y_max_s; -void init_cpu(CpuConfig *config); +void init_cpu(config_t *config); void render_cpu(void); void idle_cpu(void); void idle_cpu_dummy(void); -- cgit v1.2.1