aboutsummaryrefslogtreecommitdiff
path: root/cub3d.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-01-30 14:18:41 +0100
committerCharles <sircharlesaze@gmail.com>2020-01-30 14:18:41 +0100
commit679b5dced1d73d9284bab8965e2f3bf37b3056f4 (patch)
tree1ec6a302f6ceb63296322b3b8f03107290157450 /cub3d.h
parent01e713026d462f3adf5b3e6f0b2785d0fa7c9bc2 (diff)
downloadcub3d-679b5dced1d73d9284bab8965e2f3bf37b3056f4.tar.gz
cub3d-679b5dced1d73d9284bab8965e2f3bf37b3056f4.tar.bz2
cub3d-679b5dced1d73d9284bab8965e2f3bf37b3056f4.zip
fixed ceilling/floor color
Diffstat (limited to 'cub3d.h')
-rw-r--r--cub3d.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/cub3d.h b/cub3d.h
index 5f48648..00a3374 100644
--- a/cub3d.h
+++ b/cub3d.h
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/11/15 06:40:37 by cacharle #+# #+# */
-/* Updated: 2020/01/30 12:04:26 by cacharle ### ########.fr */
+/* Updated: 2020/01/30 14:17:19 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdio.h>
@@ -53,10 +53,10 @@ typedef union
unsigned int hexcode;
struct
{
- t_byte empty;
- t_byte r;
- t_byte g;
t_byte b;
+ t_byte g;
+ t_byte r;
+ t_byte empty;
} rgb;
} t_color;
@@ -100,8 +100,6 @@ typedef struct s_state
t_bool running;
void *mlx_ptr;
void *window_ptr;
- int window_width;
- int window_height;
t_vector pos;
t_vector dir;
t_vector plane;