From 51f58c3e656012c745b9e95daf169327542748e5 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Thu, 13 Feb 2020 17:18:47 +0100 Subject: does not compile but new header for structs --- inc/cub3d.h | 79 +------------------------------------------------------------ 1 file changed, 1 insertion(+), 78 deletions(-) (limited to 'inc/cub3d.h') diff --git a/inc/cub3d.h b/inc/cub3d.h index ceba8cd..777360b 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -16,6 +16,7 @@ #include #include +#include # ifndef FT_W_KEY # define FT_W_KEY 13 @@ -42,84 +43,6 @@ # define FT_SCR_SIZE "1920x1080" # endif -typedef struct s_win -{ - void *wlx; - void *winptr; - uint8_t inited; - uint16_t x_max_size; - uint16_t y_max_size; - uint16_t x_size; - uint16_t y_size; -} t_win; - -typedef struct s_img -{ - void *img; - char *ptr; - int bpp; - int sizeline; - int endian; -} t_img; - -typedef struct s_rgb -{ - int16_t r; - int16_t g; - int16_t b; -} t_rgb; - -/* -** view_side: -** 1: North -** 2: East -** 3: South -** 4: West -*/ - -typedef struct s_player -{ - float pos_x; - float pos_y; - float view_side; -} t_player; - -typedef struct s_ray -{ - double x_ray_position; - double y_ray_position; - double x_ray_direction; - double y_ray_direction; - double x_side_distance; - double y_side_distance; - double x_delta_distance; - double y_delta_distance; - int hitX; - int hitY; - int hits[150]; -} t_ray; - -typedef struct s_cub -{ - char *no_tex_path; - char *so_tex_path; - char *ea_tex_path; - char *we_tex_path; - char *sprite_path; - char *mapl; - char **map; - size_t map_w; - size_t map_h; - size_t line_chk; - size_t map_start; - uint8_t isspawn; - uint8_t scale; - struct s_win *wlist; - struct s_player *plist; - struct s_img img; - struct s_rgb f_rgb; - struct s_rgb c_rgb; -} t_cub; /* ** ret vals: -- cgit v1.2.3