diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-23 22:06:00 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-23 22:06:00 +0100 |
commit | c786ace26fb4a041a43b2149b61c11b1c75ba1ca (patch) | |
tree | 69f33f8a7e67a5f6214a38b15eea3541b317d7d4 /inc | |
parent | now pthread (diff) | |
download | 42-cub3d-c786ace26fb4a041a43b2149b61c11b1c75ba1ca.tar.gz 42-cub3d-c786ace26fb4a041a43b2149b61c11b1c75ba1ca.tar.bz2 42-cub3d-c786ace26fb4a041a43b2149b61c11b1c75ba1ca.tar.xz 42-cub3d-c786ace26fb4a041a43b2149b61c11b1c75ba1ca.tar.zst 42-cub3d-c786ace26fb4a041a43b2149b61c11b1c75ba1ca.zip |
Some threads
Diffstat (limited to 'inc')
-rw-r--r-- | inc/cub3d.h | 5 | ||||
-rw-r--r-- | inc/cub3d_structs.h | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h index 8fcafc6..852ece4 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -85,8 +85,6 @@ 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); -int8_t ft_draw_verline(t_cub *cl, int32_t x, - int32_t y1, 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); @@ -164,7 +162,8 @@ void ft_choose_tex(uint16_t x, t_cub *clist); void ft_detect(t_cub *cl); void ft_detection_init_x(t_cub *cl); void ft_detection_init_y(t_cub *cl); -void ft_floor_cast(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); /* diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 1596831..49ede14 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -85,6 +85,8 @@ typedef struct s_img int img_h; int tex_x; int tex_y; + int tex_x_alt; + int tex_y_alt; } t_img; typedef struct s_rgb @@ -237,6 +239,7 @@ typedef struct s_cub uint8_t doicast; uint16_t currlvl; uint16_t i; + uint16_t y; char errmsg[64]; int32_t key_input[5]; char fps_count[9]; |