header norm check

This commit is contained in:
Gregory Tertyshny 2017-03-24 19:59:25 +02:00
parent 91cd64dba8
commit bd7baf18bd

View file

@ -6,7 +6,7 @@
/* By: gtertysh <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/16 20:59:04 by gtertysh #+# #+# */
/* Updated: 2017/03/24 14:00:01 by gtertysh ### ########.fr */
/* Updated: 2017/03/24 19:58:43 by gtertysh ### ########.fr */
/* */
/* ************************************************************************** */
@ -40,7 +40,6 @@
# define NUM_THREADS 24
typedef struct s_complex
{
long double rl;
@ -86,14 +85,14 @@ typedef struct s_image
int bpp;
} t_image;
typedef t_color (*frac_func)(t_frac_data *data, int x, int y);
typedef t_color (*t_frac_func)(t_frac_data *data, int x, int y);
typedef struct s_fractol
{
void *mlx;
void *win;
t_frac_data *frac;
frac_func fr_funcs[3];
t_frac_func fr_funcs[3];
int w_height;
int w_width;
t_image *img;
@ -104,7 +103,7 @@ typedef struct s_thread_data
t_fractol fr;
int y_start;
int y_end;
frac_func fractal_func;
t_frac_func fractal_func;
} t_thread_data;
void quit(t_fractol *fractol);
@ -118,7 +117,7 @@ t_gradient random_gradient(void);
t_fractol *fractol_init(void *mlx, int frac_type);
int key_hook(int keycode, void *m);
int mouse_move_hook( int x, int y, void *fr);
int mouse_move_hook(int x, int y, void *fr);
int mouse_button_hook(int btn, int x, int y, void *fr);
void put_pixel_to_image(int x, int y, t_color col, t_fractol *fr);