aboutsummaryrefslogtreecommitdiff
path: root/src/sets.h
diff options
context:
space:
mode:
authorLeonard Kugis <leonardkugis@gmail.com>2018-01-27 02:03:31 +0100
committerLeonard Kugis <leonardkugis@gmail.com>2018-01-27 02:03:31 +0100
commitc8a38bd8ad66eb0b35f08a4733fdee37a888b83c (patch)
tree63f730553e879f5e14f0dc5e3cbb92ce771ae43f /src/sets.h
parent3d162bbcc92b22e6b00ee80194214c393770adb7 (diff)
OpenCL rendering added, not working properly
Diffstat (limited to 'src/sets.h')
-rw-r--r--src/sets.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sets.h b/src/sets.h
index cea87fc..3dd8227 100644
--- a/src/sets.h
+++ b/src/sets.h
@@ -10,6 +10,14 @@
#include "defs.h"
+#define SFUNC_MANDELBROT_R 0
+#define SFUNC_MANDELBROT_S (~0)
+#define SFUNC_JULIA_R 1
+#define SFUNC_JULIA_S (~1)
+
+#define SFUNC_MANDELBROT SFUNC_MANDELBROT_R
+#define SFUNC_JULIA SFUNC_JULIA_R
+
u32 mandelbrot_s(d64 x, d64 y, u32 iterations);
u32 mandelbrot_r(d64 x, d64 y, u32 iterations);
u32 _mandelbrot_r(d64 x, d64 y, d64 zx, d64 zy, u32 n, u32 iterations, d64 threshold);