diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2020-02-22 20:56:50 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2020-02-22 20:56:50 +0100 |
commit | d2f53e38cbf711e35035a4576070a5211a1d055d (patch) | |
tree | 318b304f44283bab6971eed8aa4c192c0c6e0424 /inc | |
parent | que des maths (diff) | |
download | 42-cub3d-d2f53e38cbf711e35035a4576070a5211a1d055d.tar.gz 42-cub3d-d2f53e38cbf711e35035a4576070a5211a1d055d.tar.bz2 42-cub3d-d2f53e38cbf711e35035a4576070a5211a1d055d.tar.xz 42-cub3d-d2f53e38cbf711e35035a4576070a5211a1d055d.tar.zst 42-cub3d-d2f53e38cbf711e35035a4576070a5211a1d055d.zip |
shpritz
Diffstat (limited to '')
-rw-r--r-- | inc/cub3d.h | 1 | ||||
-rw-r--r-- | inc/cub3d_structs.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h index 87f6ef3..2d9853c 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -83,5 +83,6 @@ 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_draw_sprite(t_cub *cl, int i); # endif diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 72cc377..4c397b2 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -49,6 +49,7 @@ 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; @@ -57,6 +58,8 @@ typedef struct s_sprite 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; |