-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfractol.h
81 lines (74 loc) · 2.29 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* fractol.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sel-hamr <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/12/24 08:50:29 by sel-hamr #+# #+# */
/* Updated: 2019/12/25 10:14:02 by sel-hamr ### ########.fr */
/* */
/* ************************************************************************** */
# ifndef FRACTOL_H
# define FRACTOL_H
#include <mlx.h>
#include <stdlib.h>
#include <unistd.h>
# define WIDTH 600
# define HIGHT 600
typedef struct s_t
{
unsigned char *ch;
double x;
double y;
double x_x;
double y_y;
void *ptr;
void *win;
double x_o;
double y_o;
int itier;
double xtmp;
double ytmp;
void *image;
int size_l;
int bpp;
int endian;
int index;
char *name;
double start_y;
double end_y;
double start_x;
double end_x;
int zoom;
int stop;
int max;
int color;
} t_t;
void mandelbrot(t_t *t);
int str_cmp(char *s1, char *s2);
int mouse_move(int x, int y, t_t *t);
int mouse_press(int button, int x, int y, t_t *t);
int key_press(int keycode, t_t *t);
int key_press(int keycode, t_t *t);
void julia(t_t *t);
void menu(t_t *t);
void itier_loop(t_t *t);
void map(t_t *t);
double ft_abs(double x);
void key_press2(int keycode, t_t *t);
void key_press3(int keycode, t_t *t);
void key_press4(int keycode, t_t *t);
void set_color(t_t *t, int color);
int str_cmp(char *s1, char *s2);
void check_ar(t_t *t);
void init(t_t *t, char *str);
void string_put(t_t *t);
void zoom(t_t *t, double x, double y, double zoom);
void mlx_ho(t_t *t);
void simple_zoome1(t_t *t);
void simple_zoome2(t_t *t);
void init_x_y(t_t *t);
void string1_put(t_t *t);
void destroy_exit(t_t *t);
# endif