aboutsummaryrefslogtreecommitdiff
path: root/src/render_opencl.h
diff options
context:
space:
mode:
authorLeonard Kugis <leonardkugis@gmail.com>2018-01-26 01:12:49 +0100
committerLeonard Kugis <leonardkugis@gmail.com>2018-01-26 01:12:49 +0100
commit1c3ea27064257d8cf7b9f36b0388b8cf2e94ab08 (patch)
tree9b2d9a0dbb2940158b2fb734325cfc360efac6f4 /src/render_opencl.h
parente6c241add375353c1c80b0e3915a6505dbd5db9a (diff)
Skeleton for OpenCL rendering, cleaned up alot, WIP and crashing
Diffstat (limited to 'src/render_opencl.h')
-rw-r--r--src/render_opencl.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/render_opencl.h b/src/render_opencl.h
new file mode 100644
index 0000000..aaa9df6
--- /dev/null
+++ b/src/render_opencl.h
@@ -0,0 +1,35 @@
+/*
+ * render_opencl.h
+ *
+ * Created on: 25.01.2018
+ * Author: Superleo1810
+ */
+
+#ifndef RENDER_OPENCL_H_
+#define RENDER_OPENCL_H_
+
+#include "defs.h"
+#include <stdlib.h>
+#include <GL/glut.h>
+
+typedef struct config_opencl {
+ u32 *arr;
+ 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;
+} OpenCLConfig;
+
+OpenCLConfig *config_opencl;
+
+void init_opencl(OpenCLConfig *config);
+void render_opencl(void);
+void idle_opencl(void);
+
+#endif /* RENDER_OPENCL_H_ */