aboutsummaryrefslogtreecommitdiff
path: root/include/fractol.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-02-26 12:10:39 +0100
committerCharles <sircharlesaze@gmail.com>2020-02-26 13:29:26 +0100
commitfcd239d3d5b46d72cf99a7c439a72031a0ef3a9c (patch)
treeec4200af67ac2726803dbe2756c64a7ff7b81f88 /include/fractol.h
parent4912a5a3c001fe69b707fdcb69efc2fb163ce107 (diff)
downloadfractol-fcd239d3d5b46d72cf99a7c439a72031a0ef3a9c.tar.gz
fractol-fcd239d3d5b46d72cf99a7c439a72031a0ef3a9c.tar.bz2
fractol-fcd239d3d5b46d72cf99a7c439a72031a0ef3a9c.zip
Added supersampling
Diffstat (limited to 'include/fractol.h')
-rw-r--r--include/fractol.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/fractol.h b/include/fractol.h
index e054086..c46e350 100644
--- a/include/fractol.h
+++ b/include/fractol.h
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/24 09:28:16 by cacharle #+# #+# */
-/* Updated: 2020/02/25 18:07:42 by cacharle ### ########.fr */
+/* Updated: 2020/02/26 13:23:33 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -54,6 +54,8 @@
# define MLXK_D 2
# define MLXK_F 3
# define MLXK_S 1
+# define MLXK_E 14
+# define MLXK_R 15
# define MLXK_PLUS 24
# define MLXK_MINUS 27
@@ -119,6 +121,7 @@ typedef struct s_state
t_complex c;
int iterations;
int offsets[WINDOW_HEIGHT];
+ double samples;
} t_state;
typedef struct
@@ -126,6 +129,7 @@ typedef struct
t_state *state;
int offset;
t_complex z;
+ double step_i;
} t_render_routine_arg;
/*