diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-05 00:30:41 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-05 00:30:41 +0100 |
commit | b729c722cb6fea7a88929e0054508bfa60c27ed5 (patch) | |
tree | ba6f02bee81a1cfd5144847f0f0e5e57d3332f7f /inc/cub3d_structs.h | |
parent | it's all black (diff) | |
download | 42-cub3d-b729c722cb6fea7a88929e0054508bfa60c27ed5.tar.gz 42-cub3d-b729c722cb6fea7a88929e0054508bfa60c27ed5.tar.bz2 42-cub3d-b729c722cb6fea7a88929e0054508bfa60c27ed5.tar.xz 42-cub3d-b729c722cb6fea7a88929e0054508bfa60c27ed5.tar.zst 42-cub3d-b729c722cb6fea7a88929e0054508bfa60c27ed5.zip |
How do I convert hex to rgb pls
Diffstat (limited to 'inc/cub3d_structs.h')
-rw-r--r-- | inc/cub3d_structs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 0773e11..ab99f7b 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -54,6 +54,13 @@ typedef struct s_bmp_info uint32_t colors_important; } t_bmp_info; +typedef struct s_bmp_rgb +{ + uint8_t r; + uint8_t g; + uint8_t b; +} t_bmp_rgb; + # pragma pack(pop) typedef struct s_img |