-
Notifications
You must be signed in to change notification settings - Fork 0
/
fractol.h
42 lines (37 loc) · 1.39 KB
/
fractol.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* fractol.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: pvan-erp <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/04/03 21:40:14 by pvan-erp #+# #+# */
/* Updated: 2017/04/04 23:13:58 by pvan-erp ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FRACTOL_H
# define FRACTOL_H
# include <unistd.h>
# include <stdlib.h>
# include <math.h>
# include <pthread.h>
# include <SDL.h>
// # include "libft/libft.h"
# include "sdl_driver.h"
typedef struct s_cmplx
{
long double a;
long double b;
} t_cmplx;
typedef struct s_frac
{
char *name;
int i_max;
t_cmplx c;
} t_frac;
void fractol(char *name);
void sdl_driver(t_sdl *sdl);
void init_scale(t_sdl *sdl);
int julia(t_cmplx z0, t_cmplx c, int i_max);
int julia3(t_cmplx z0, t_cmplx c, int i_max);
#endif