diff options
Diffstat (limited to '')
-rw-r--r-- | inc/cub3d.h | 1 | ||||
-rw-r--r-- | inc/cub3d_structs.h | 10 |
2 files changed, 8 insertions, 3 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h index 09ea32e..87f6ef3 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -83,6 +83,5 @@ void ft_draw_circle(int32_t a, int32_t b, int32_t color, t_cub *cl); void ft_draw_texture(t_cub *cl, int x, int y, int tex_y); int8_t ft_check_not_found(const char *path); -void ft_calc_tex(t_cub *clist); # endif diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 7731563..72cc377 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -49,14 +49,19 @@ typedef struct s_rgb typedef struct s_sprite { - int32_t s_x; - int32_t s_y; + int32_t s_pos_x; + int32_t s_pos_y; + double s_x; + double s_y; int32_t s_h; int32_t s_w; int32_t s_start_x; int32_t s_start_y; int32_t s_tex_y; + double sprite_transform_x; + double sprite_transform_y; double sprite_dist; + double inv_c_m; } t_sprite; typedef struct s_player @@ -128,6 +133,7 @@ typedef struct s_cub struct s_rgb f_rgb; struct s_rgb c_rgb; struct s_img tlist[5]; + struct s_sprite sp_list; } t_cub; # endif |