aboutsummaryrefslogtreecommitdiff
path: root/src/render_cpu.h
diff options
context:
space:
mode:
authorLeonard Kugis <leonardkugis@gmail.com>2018-02-01 00:26:36 +0100
committerLeonard Kugis <leonardkugis@gmail.com>2018-02-01 00:26:36 +0100
commitbe4f2582062196dd6ecf393f55566367bc1dfa9f (patch)
tree9c80c556327097f6ab7e4b97b5b195d45167565f /src/render_cpu.h
parent28006d5fa6af63a9bc2f274e7daf7a741eaacde5 (diff)
reorganized configs
Diffstat (limited to 'src/render_cpu.h')
-rw-r--r--src/render_cpu.h22
1 files changed, 3 insertions, 19 deletions
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 <pthread.h>
#include <time.h>
#include <math.h>
+#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);