diff options
author | Leonard Kugis <leonardkugis@gmail.com> | 2018-01-27 02:03:31 +0100 |
---|---|---|
committer | Leonard Kugis <leonardkugis@gmail.com> | 2018-01-27 02:03:31 +0100 |
commit | c8a38bd8ad66eb0b35f08a4733fdee37a888b83c (patch) | |
tree | 63f730553e879f5e14f0dc5e3cbb92ce771ae43f /src/render_cpu.h | |
parent | 3d162bbcc92b22e6b00ee80194214c393770adb7 (diff) |
OpenCL rendering added, not working properly
Diffstat (limited to 'src/render_cpu.h')
-rw-r--r-- | src/render_cpu.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/render_cpu.h b/src/render_cpu.h index b4141ae..7abbdc4 100644 --- a/src/render_cpu.h +++ b/src/render_cpu.h @@ -12,13 +12,16 @@ #include <stdlib.h> #include <GL/glut.h> #include <pthread.h> +#include <time.h> #include <math.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; @@ -42,14 +45,12 @@ typedef struct t_args { u32 *arr; } ThreadArgs; - CpuConfig *config_cpu; -GLuint tex; u32 rendercnt; +float ft; + d64 x_min, x_max, y_min, y_max; d64 x_min_s, x_max_s, y_min_s, y_max_s; -int delta; -d64 dt, ft; void init_cpu(CpuConfig *config); void render_cpu(void); |