diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-02-02 09:57:02 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-02-02 09:57:02 +0100 |
| commit | 628f82dbb9d44dfda7ebde0a54b6559b275e204c (patch) | |
| tree | f41e8195ab7063d65142b37aefecad2b1e72535f /include/cub3d.h | |
| parent | 44e93a191badd8c23d0bb971665f335bbb38f177 (diff) | |
| download | cub3d-628f82dbb9d44dfda7ebde0a54b6559b275e204c.tar.gz cub3d-628f82dbb9d44dfda7ebde0a54b6559b275e204c.tar.bz2 cub3d-628f82dbb9d44dfda7ebde0a54b6559b275e204c.zip | |
sprite kinda working but like walls (fml)
Diffstat (limited to 'include/cub3d.h')
| -rw-r--r-- | include/cub3d.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/cub3d.h b/include/cub3d.h index 9c609d8..12c6fe1 100644 --- a/include/cub3d.h +++ b/include/cub3d.h @@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/11/15 06:40:37 by cacharle #+# #+# */ -/* Updated: 2020/02/01 14:06:36 by cacharle ### ########.fr */ +/* Updated: 2020/02/02 09:36:22 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #include <stdio.h> @@ -56,7 +56,7 @@ typedef union t_byte b; t_byte g; t_byte r; - t_byte empty; + t_byte alpha; } rgb; } t_color; @@ -109,7 +109,7 @@ typedef struct s_state t_color ceilling_color; t_color floor_color; t_image window; - t_image window_sprite; + t_image sprite_window; t_image *surface; char *textures_path[TEXTURES_NUM]; t_image textures[TEXTURES_NUM]; @@ -134,6 +134,7 @@ typedef struct s_render_state t_vector map_step; int draw_start; int draw_end; + t_cell target; } t_render_state; typedef t_bool (*t_option_parser_func)(t_state *state, char *line); |
