aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-05 17:26:10 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-05 17:26:10 +0100
commit08dce587032f08c5bfbc2790bdb2d668ca1990c1 (patch)
treea927bf674dfa6d1d3efd03ef06dfacb115ae238f /inc
parentmap fix (diff)
download42-cub3d-08dce587032f08c5bfbc2790bdb2d668ca1990c1.tar.gz
42-cub3d-08dce587032f08c5bfbc2790bdb2d668ca1990c1.tar.bz2
42-cub3d-08dce587032f08c5bfbc2790bdb2d668ca1990c1.tar.xz
42-cub3d-08dce587032f08c5bfbc2790bdb2d668ca1990c1.tar.zst
42-cub3d-08dce587032f08c5bfbc2790bdb2d668ca1990c1.zip
int16_tamer
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index f017973..7ea11d6 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -58,9 +58,9 @@ typedef struct s_img
typedef struct s_rgb
{
- uint8_t r;
- uint8_t g;
- uint8_t b;
+ int16_t r;
+ int16_t g;
+ int16_t b;
} t_rgb;
/*
@@ -85,8 +85,6 @@ typedef struct s_cub
char *ea_tex_path;
char *we_tex_path;
char *sprite_path;
- int f_color;
- int c_color;
char *mapl;
char **map;
size_t map_w;
@@ -130,6 +128,6 @@ int ft_map_error(t_cub *clist);
int ft_init_winlx(t_cub *clist);
void ft_drawmap(t_cub *clist);
void ft_print_list(t_cub *clist);
-int ft_rgb_to_hex(t_rgb rgb);
+uint32_t ft_rgb_to_hex(t_rgb rgb);
# endif