From b729c722cb6fea7a88929e0054508bfa60c27ed5 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 5 Mar 2020 00:30:41 +0100 Subject: How do I convert hex to rgb pls --- inc/cub3d_structs.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'inc/cub3d_structs.h') 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 -- cgit v1.2.3