-
Notifications
You must be signed in to change notification settings - Fork 0
/
cub3d.h
71 lines (67 loc) · 2.66 KB
/
cub3d.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* cub3d.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: asegovia <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/23 11:29:03 by asegovia #+# #+# */
/* Updated: 2020/07/08 09:02:08 by asegovia ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef CUB3D_H
# define CUB3D_H
# include "mlx/mlx.h"
# include <mlx.h>
# include <math.h>
# include <stdio.h>
# include <stdlib.h>
# include "map/map.h"
# include "lib/libft.h"
# include "cub_structs.h"
# include <string.h>
void angle_ref(t_struct *t);
void initial_pos(t_struct *t);
void move_press(t_struct *t);
void move_release(t_struct *t);
unsigned int chose_color (t_struct *t, int y, int x);
void pixel_put(t_struct *t, int x, int y, int color);
void paint_square(t_struct *t, unsigned int color, int x, int y);
void paint_map(t_struct *t, int x, int y);
int press (int key, t_struct *t);
void create_img(t_struct *t);
void check_mov(t_struct *t);
void sprite_sort(t_struct *t);
void sprite_dist(t_struct *t);
void movement(t_struct *t);
void paint_pos(t_struct *t);
int release(int key, t_struct *t);
void raycast(t_struct *t);
void magic_tex(t_struct *t);
int waiting(t_struct *t);
void load_texture(t_struct *t);
int mouse(int x, int y, t_struct *t);
int exit_win(t_struct *t);
void magic_spr(t_struct *t);
void save_bmp(t_struct *t);
void sprite_sort(t_struct *t);
void sprite_dist(t_struct *t);
void load_sprite(t_struct *t);
void save_bmp(t_struct *t);
void bmp_header(t_struct *t, int fd);
void bmp_image(t_struct *t, int fd);
void movement(t_struct *t);
void init_mov(t_struct *t);
void start_raycast(t_struct *t, int x);
void init_raycast(t_struct *t);
void tex_color(t_struct *t, int i);
void print_raycast(t_struct *t, int x);
void print_raycast_tex(t_struct *t, int x);
void start_raycast(t_struct *t, int x);
void step_calculation(t_struct *t);
void print_sprites(t_struct *t);
void draw_calculation(t_struct *t);
void hit_calculation(t_struct *t);
void init_all(t_struct *t);
void spr_col(t_struct *t);
#endif