From 0b14b6447562d2ce7814fc188c988fb1cbf890c2 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Mon, 9 Mar 2020 19:28:45 +0100 Subject: Norme is pretty bav --- inc/cub3d.h | 2 ++ inc/cub3d_structs.h | 46 +++++++++++++++++++++++----------------------- 2 files changed, 25 insertions(+), 23 deletions(-) (limited to 'inc') diff --git a/inc/cub3d.h b/inc/cub3d.h index 615112b..f255b00 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -72,6 +72,8 @@ 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_width(t_cub *cl, t_sprite *sprite); +void ft_sprite_height(t_cub *cl, t_sprite *sprite); void ft_calc_sprite(t_cub *cl); void ft_draw_sprite(t_cub *cl, t_sprite *sprite); void ft_get_sprite_spawn(t_cub *cl); diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 3c7ae28..d650110 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -86,29 +86,29 @@ typedef struct s_rgb typedef struct s_sprite { - int32_t spritescreenx; - int32_t x; - int32_t y; - int32_t tex_x; - int32_t tex_y; - int32_t s_pos_x; - int32_t s_pos_y; - double spritex; - double spritey; - int32_t spriteheight; - int32_t spritewidth; - int32_t drawstartx; - int32_t drawstarty; - int32_t drawendx; - int32_t drawendy; - int32_t s_tex_y; - double transformx; - double transformy; - double sprite_dist; - double invdet; -} t_sprite; - -typedef struct s_player + int32_t spritescreenx; + int32_t x; + int32_t y; + int32_t tex_x; + int32_t tex_y; + int32_t s_pos_x; + int32_t s_pos_y; + double spritex; + double spritey; + int32_t spriteheight; + int32_t spritewidth; + int32_t drawstartx; + int32_t drawstarty; + int32_t drawendx; + int32_t drawendy; + int32_t s_tex_y; + double transformx; + double transformy; + double sprite_dist; + double invdet; +} t_sprite; + +typedef struct s_player { float pos_x; float pos_y; -- cgit v1.2.3