diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-01-23 15:40:55 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-01-23 15:40:55 +0100 |
commit | 9b431298d0346ce2a181771e9cc78b83c97737f1 (patch) | |
tree | 268d5d29b307bccc1611b4180035e9ccc23edb90 /src/main.c | |
parent | Added back minilibx, added gitignore (diff) | |
download | 42-cub3d-9b431298d0346ce2a181771e9cc78b83c97737f1.tar.gz 42-cub3d-9b431298d0346ce2a181771e9cc78b83c97737f1.tar.bz2 42-cub3d-9b431298d0346ce2a181771e9cc78b83c97737f1.tar.xz 42-cub3d-9b431298d0346ce2a181771e9cc78b83c97737f1.tar.zst 42-cub3d-9b431298d0346ce2a181771e9cc78b83c97737f1.zip |
Renamed minilibx to mlx
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -1,7 +1,15 @@ -#include <stddef.h> -#include <string.h> +#include <libft.h> +#include <mlx.h> +#include <stdlib.h> int main(void) { - strlen(NULL); + void *win; + void *winptr; + + win = mlx_init(); + winptr = (void*)malloc(800 * 600); + winptr = mlx_new_window(win, 800, 600, "Cub3d"); + free(win); + free(winptr); return (0); } |