diff options
Diffstat (limited to 'inc/cub3d_structs.h')
-rw-r--r-- | inc/cub3d_structs.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 639de11..a173e8c 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -49,11 +49,22 @@ typedef struct s_rgb typedef struct s_sprite { + int32_t s_screen_x; + 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_end_x; + int32_t s_end_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 @@ -126,6 +137,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 |