aboutsummaryrefslogtreecommitdiffstats
path: root/inc/cub3d_structs.h
diff options
context:
space:
mode:
authorsalaaad2 <arthudurant263@gmail.com>2020-02-25 17:33:15 +0100
committersalaaad2 <arthudurant263@gmail.com>2020-02-25 17:33:15 +0100
commit51dd3734caadd0c3b943da3410772c65558280cc (patch)
tree20753d7dc65e749c849ad9eb1f0b003fe65bde2a /inc/cub3d_structs.h
parentbunch of garbage (diff)
download42-cub3d-51dd3734caadd0c3b943da3410772c65558280cc.tar.gz
42-cub3d-51dd3734caadd0c3b943da3410772c65558280cc.tar.bz2
42-cub3d-51dd3734caadd0c3b943da3410772c65558280cc.tar.xz
42-cub3d-51dd3734caadd0c3b943da3410772c65558280cc.tar.zst
42-cub3d-51dd3734caadd0c3b943da3410772c65558280cc.zip
???
Diffstat (limited to 'inc/cub3d_structs.h')
-rw-r--r--inc/cub3d_structs.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 91a1ee9..a8ae385 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -49,24 +49,26 @@ typedef struct s_rgb
typedef struct s_sprite
{
- int32_t s_screen_x;
+ 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 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;
+ 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 sprite_transform_x;
- double sprite_transform_y;
+ double transformx;
+ double transformy;
double sprite_dist;
- double inv_c_m;
+ double invdet;
} t_sprite;
typedef struct s_player