diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-01-23 16:16:50 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-01-23 16:16:50 +0100 |
commit | 676cdc452bf3f54f0013400fcf6adce9c8990150 (patch) | |
tree | 0b9f7f5a368106e66fa0bda5ff0b4daca1db65f4 /src/ft_init_lists.c | |
parent | Trying to close (diff) | |
download | 42-cub3d-676cdc452bf3f54f0013400fcf6adce9c8990150.tar.gz 42-cub3d-676cdc452bf3f54f0013400fcf6adce9c8990150.tar.bz2 42-cub3d-676cdc452bf3f54f0013400fcf6adce9c8990150.tar.xz 42-cub3d-676cdc452bf3f54f0013400fcf6adce9c8990150.tar.zst 42-cub3d-676cdc452bf3f54f0013400fcf6adce9c8990150.zip |
nice
Diffstat (limited to 'src/ft_init_lists.c')
-rw-r--r-- | src/ft_init_lists.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c new file mode 100644 index 0000000..c61dd45 --- /dev/null +++ b/src/ft_init_lists.c @@ -0,0 +1,27 @@ +#include <libft.h> +#include <mlx.h> +#include <cub3d.h> +#include <stdlib.h> + +t_winlist +*ft_init_winlist(void) +{ + t_winlist *wlist; + + wlist = (t_winlist*)malloc(sizeof(t_winlist)); + wlist->x_size = 800; + wlist->y_size = 600; + wlist->wlx = mlx_init(); + wlist->winptr = (void*)malloc(800 * 600); + wlist->winptr = mlx_new_window(wlist->wlx, 800, 600, "Cub3D"); + return (wlist); +} + +t_cublist +*ft_init_cublist(void) +{ + t_cublist *clist; + + clist = (t_cublist*)malloc(sizeof(t_cublist)); + return (clist); +} |