-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.h
More file actions
65 lines (58 loc) · 1.36 KB
/
header.h
File metadata and controls
65 lines (58 loc) · 1.36 KB
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
/*
** header.h for header.h in /home/juliena/Documents/graph/tp_droites
**
** Made by athomasjulien
** Login <juliena@epitech.net>
**
** Started on Thu Nov 21 17:14:20 2013 athomasjulien
** Last update Sun Jan 12 22:24:35 2014 athomasjulien
*/
#ifndef HEADER_H_
# define HEADER_H_
typedef struct s_my_img
{
void *mlx_ptr;
void *win_ptr;
void *img_ptr;
char *data;
int bpp;
int sizeline;
int endian;
} t_my_img;
typedef struct s_char
{
float x;
float y;
float alpha;
} t_char;
typedef struct s_vec_coord
{
float new_x;
float new_y;
float x1;
float y1;
float vx;
float vy;
float midvx;
float midvy;
} t_vcoord;
typedef struct s_struct_point
{
t_my_img *img;
t_char *charac;
t_vcoord *coord;
} t_point;
int gere_expose(t_point *);
int gere_key(int, void *);
t_my_img my_pixel_put_to_image(t_my_img, int, int, int);
int my_pos_calc(t_char *, float, t_my_img *, t_vcoord *);
void my_wall(t_my_img *, t_char *, t_vcoord *);
int my_wall_present(int , int );
int my_wall_draw(float, int, t_my_img *);
float my_x_intersection(t_char *, t_vcoord *, float);
float my_wall_pos(t_char *, t_vcoord *);
int my_pos_calc(t_char *, float, t_my_img *, t_vcoord *);
int my_first_img(t_my_img *);
int my_struct_init(t_point *);
void my_movement(t_point *);
#endif /* !HEADER_H_ */