diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ft_draw_sprite_extra.c | 2 | ||||
-rw-r--r-- | src/ft_sort_s_t.c | 36 |
2 files changed, 37 insertions, 1 deletions
diff --git a/src/ft_draw_sprite_extra.c b/src/ft_draw_sprite_extra.c index 523bf3d..6096522 100644 --- a/src/ft_draw_sprite_extra.c +++ b/src/ft_draw_sprite_extra.c @@ -13,7 +13,6 @@ #include <libft.h> #include <cub3d.h> #include <stdint.h> -#include <stdio.h> #include <stdlib.h> #include <math.h> @@ -64,6 +63,7 @@ void i = 0; j = 0; ft_sort_sprites(cl); + ft_sort_s_t(cl, cl->sprites); while (j < cl->mlist.sprite_var) { while (i < cl->mlist.sprite_nbr) diff --git a/src/ft_sort_s_t.c b/src/ft_sort_s_t.c new file mode 100644 index 0000000..f91804b --- /dev/null +++ b/src/ft_sort_s_t.c @@ -0,0 +1,36 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_sort_s_t.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/24 20:22:45 by rbousset #+# #+# */ +/* Updated: 2020/03/09 18:56:01 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#include <libft.h> +#include <cub3d.h> +#include <stdint.h> +#include <stdlib.h> +#include <math.h> + +void + ft_sort_s_t(cl, t_sprite *s[4096]) +{ + uint16_t i; + uint16_t j; + t_sprite tmp_s; + + i = 0; + j = 0; + while (i < cl->sprite_var) + { + if (s[i][0].) + { + + } + i++; + } +} |