diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-24 20:06:05 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-24 20:06:05 +0100 |
commit | b6736a2dc2cead76bd6a619b52d2d18ac3d4029d (patch) | |
tree | ee89b6ac356cb37a7906ff157c1f1908823b9d2b /inc | |
parent | Norme and merge (diff) | |
download | 42-cub3d-b6736a2dc2cead76bd6a619b52d2d18ac3d4029d.tar.gz 42-cub3d-b6736a2dc2cead76bd6a619b52d2d18ac3d4029d.tar.bz2 42-cub3d-b6736a2dc2cead76bd6a619b52d2d18ac3d4029d.tar.xz 42-cub3d-b6736a2dc2cead76bd6a619b52d2d18ac3d4029d.tar.zst 42-cub3d-b6736a2dc2cead76bd6a619b52d2d18ac3d4029d.zip |
Get normed
Diffstat (limited to '')
-rw-r--r-- | inc/cub3d.h | 15 | ||||
-rw-r--r-- | inc/cub3d_structs.h | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h index 80ea1e2..454dc46 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -85,6 +85,7 @@ void ft_draw_scene(t_cub *clist); void ft_draw_scene_bmp(t_cub *clist); void ft_draw_circle(float a, float b, int32_t color, t_cub *cl); +void ft_draw_verline(t_cub *cl, int32_t x, int32_t y, int32_t y2); void ft_sprite_h_w(t_cub *cl, t_sprite *sprite); void ft_sort_sprites(t_cub *cl, int16_t i, int16_t j); void ft_calc_sprite(t_cub *cl); @@ -106,6 +107,14 @@ void *ft_life_bar_thread(void *vargp); void *ft_ammo_bar_thread(void *vargp); void *ft_health_cap_thread(void *vargp); void *ft_ammo_cap_thread(void *vargp); +void *ft_wall_one(void *vargp); +void *ft_wall_two(void *vargp); +void *ft_wall_three(void *vargp); +void *ft_wall_four(void *vargp); +void *ft_floor_one(void *vargp); +void *ft_floor_two(void *vargp); +void *ft_floor_three(void *vargp); +void *ft_floor_four(void *vargp); /* ** ====== PARSING ====== @@ -172,6 +181,12 @@ void ft_detection_init_y(t_cub *cl); void *ft_wall_cast(void *vargp); void *ft_floor_cast(void *vargp); void ft_floor_cast_inits(uint16_t y, t_ray *rl, t_cub *cl); +void ft_calc_tex(t_cub *cl); +void ft_initray(uint16_t i, t_cub *cl); +void ft_castray_loop(uint16_t i, t_win *wl, t_cub *cl); +void ft_set_fc_tex_xy(uint8_t tid, uint16_t x, uint16_t y, t_cub *cl); +void ft_floor_loop(uint16_t y, t_cub *cl); +void ft_floor_cast_loop(uint16_t y, uint16_t x, t_cub *cl); /* ** ====== SFX ====== diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 58caa73..3f3fb0e 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -173,10 +173,10 @@ typedef struct s_ray int32_t ***fc_tex_y_tab; float *row_dist_tab; int16_t *wall_t_tab; + int16_t *wall_b_tab; uint8_t *w_side_tab; uint16_t *line_h_tab; float *wall_dist_tab; - int16_t *wall_bz; } t_ray; typedef struct s_map |