-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfill.h
54 lines (48 loc) · 1.6 KB
/
fill.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* fill.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jkeuleya <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/01/21 14:34:57 by jkeuleya #+# #+# */
/* Updated: 2015/01/21 14:35:06 by jkeuleya ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FILL_H
# define FILL_H
# include "libft/includes/libft.h"
typedef struct s_pts
{
int x;
int y;
int z;
} t_pts;
typedef struct s_var
{
void *mlx;
void *win;
void *img;
char *content_dt;
double c;
double zfinal;
int xfinal;
int yfinal;
int width;
int height;
int size_bit;
int **map;
int lenline;
int endof_i;
int xx;
int yy;
} t_var;
t_pts *new_ptr(int x, int y, int z);
t_pts focus_ptr(int x, int y, int z);
int altitudecolor(int z);
void drawing_img(t_var *env);
void make_iso(t_pts *pt, t_var *env);
void ppixel_img(t_var *env, int x, int y, int clr);
void pline_img(t_var *env, t_pts *pt1, t_pts *pt2, int clr);
void filling_img(t_var *env, int clr);
#endif