aboutsummaryrefslogtreecommitdiffstats
path: root/inc/cub3d_structs.h
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-02-21 19:36:09 +0100
committerRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-02-21 19:36:09 +0100
commit06ad364a0dad99bc330ac5d4ec64cc6d44bbed25 (patch)
tree71c34fe71bf31b91941122a1a3ceccedf47ad8e6 /inc/cub3d_structs.h
parentMakefile update (diff)
parentadd threaded music (diff)
download42-cub3d-06ad364a0dad99bc330ac5d4ec64cc6d44bbed25.tar.gz
42-cub3d-06ad364a0dad99bc330ac5d4ec64cc6d44bbed25.tar.bz2
42-cub3d-06ad364a0dad99bc330ac5d4ec64cc6d44bbed25.tar.xz
42-cub3d-06ad364a0dad99bc330ac5d4ec64cc6d44bbed25.tar.zst
42-cub3d-06ad364a0dad99bc330ac5d4ec64cc6d44bbed25.zip
Merge branch 'sprites' of gitlab.com into sprites
Diffstat (limited to '')
-rw-r--r--inc/cub3d_structs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 66686eb..f5c295c 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -47,6 +47,15 @@ typedef struct s_rgb
int16_t b;
} t_rgb;
+typedef struct s_sprite
+{
+ int32_t s_h;
+ int32_t s_w;
+ int32_t s_start_x;
+ int32_t s_start_y;
+ int32_t s_tex_y;
+} t_sprite;
+
typedef struct s_player
{
float pos_x;