aboutsummaryrefslogtreecommitdiffstats
path: root/inc/cub3d_structs.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/cub3d_structs.h')
-rw-r--r--inc/cub3d_structs.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index af39fdd..1eb6f08 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -30,6 +30,15 @@ typedef struct s_win
# pragma pack(push, 1)
+typedef struct s_bmp_file
+{
+ uint16_t file_type;
+ uint32_t file_size;
+ uint16_t reserv_one;
+ uint16_t reserv_two;
+ uint32_t offset_data;
+} t_bmp_file;
+
typedef struct s_bmp_info
{
uint32_t size;
@@ -55,17 +64,6 @@ typedef struct s_bmp_colors
uint32_t unused[16];
} t_bmp_colors;
-typedef struct s_bmp_file
-{
- uint16_t file_type;
- uint32_t file_size;
- uint16_t reserv_one;
- uint16_t reserv_two;
- uint32_t offset_data;
- struct s_bmp_info bmp_info;
- struct s_bmp_colors bmp_colors;
-} t_bmp_file;
-
# pragma pack(pop)
typedef struct s_img