diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-01-30 15:52:16 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-01-30 15:52:16 +0100 |
| commit | 57867bbbdc24b734d85f8d3569c7ad27dcd9504d (patch) | |
| tree | 1727dd02444038341746894268ecea62b84aaea1 /parse/parse_textures.c | |
| parent | 3a164bce55e173d5204c4aaa66dd4eb5bc1762f9 (diff) | |
| download | cub3d-57867bbbdc24b734d85f8d3569c7ad27dcd9504d.tar.gz cub3d-57867bbbdc24b734d85f8d3569c7ad27dcd9504d.tar.bz2 cub3d-57867bbbdc24b734d85f8d3569c7ad27dcd9504d.zip | |
files restructuration
Diffstat (limited to 'parse/parse_textures.c')
| -rw-r--r-- | parse/parse_textures.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/parse/parse_textures.c b/parse/parse_textures.c deleted file mode 100644 index a0fb8f6..0000000 --- a/parse/parse_textures.c +++ /dev/null @@ -1,48 +0,0 @@ -/* ************************************************************************** */ -/* */ -/* ::: :::::::: */ -/* parse_textures.c :+: :+: :+: */ -/* +:+ +:+ +:+ */ -/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ -/* +#+#+#+#+#+ +#+ */ -/* Created: 2020/01/11 09:47:53 by cacharle #+# #+# */ -/* Updated: 2020/01/11 09:51:03 by cacharle ### ########.fr */ -/* */ -/* ************************************************************************** */ - -#include "cub3d.h" - -t_bool parse_north_texture(t_state *state, char *line) -{ - if ((state->textures_path[TEX_NORTH] = ft_strdup(line)) == NULL) - return (FALSE); - return (TRUE); -} - -t_bool parse_south_texture(t_state *state, char *line) -{ - if ((state->textures_path[TEX_SOUTH] = ft_strdup(line)) == NULL) - return (FALSE); - return (TRUE); -} - -t_bool parse_west_texture(t_state *state, char *line) -{ - if ((state->textures_path[TEX_WEST] = ft_strdup(line)) == NULL) - return (FALSE); - return (TRUE); -} - -t_bool parse_east_texture(t_state *state, char *line) -{ - if ((state->textures_path[TEX_EAST] = ft_strdup(line)) == NULL) - return (FALSE); - return (TRUE); -} - -t_bool parse_sprite_texture(t_state *state, char *line) -{ - if ((state->textures_path[TEX_SPRITE] = ft_strdup(line)) == NULL) - return (FALSE); - return (TRUE); -} |
