From c8a38bd8ad66eb0b35f08a4733fdee37a888b83c Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Sat, 27 Jan 2018 02:03:31 +0100 Subject: OpenCL rendering added, not working properly --- src/render_cpu.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/render_cpu.h') 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 #include #include +#include #include #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); -- cgit v1.2.1