diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-01-23 18:46:55 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-01-23 18:46:55 +0100 |
commit | dada4b12f07388262729a1b979e53e28bfb79db3 (patch) | |
tree | 4231057b3a7fc3fc2f4e100f9e188949df146023 /src/main.c | |
parent | Pretty fine (diff) | |
download | 42-cub3d-dada4b12f07388262729a1b979e53e28bfb79db3.tar.gz 42-cub3d-dada4b12f07388262729a1b979e53e28bfb79db3.tar.bz2 42-cub3d-dada4b12f07388262729a1b979e53e28bfb79db3.tar.xz 42-cub3d-dada4b12f07388262729a1b979e53e28bfb79db3.tar.zst 42-cub3d-dada4b12f07388262729a1b979e53e28bfb79db3.zip |
Nice squares
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -6,16 +6,14 @@ int main(void) { - t_winlist *wlist; - t_cublist *clist; + t_win *wlist; + t_cub *clist; - wlist = ft_init_winlist(); - clist = ft_init_cublist(); + wlist = ft_init_win(); + clist = ft_init_cub(); mlx_key_hook(wlist->winptr, ft_key_event, wlist); + ft_drawsquare(wlist, 80, 80); mlx_loop(wlist->wlx); - ft_memdel(wlist->wlx); - ft_memdel(wlist->winptr); - ft_memdel(wlist); ft_memdel(clist); return (0); } |