aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-01-23 15:40:55 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-01-23 15:40:55 +0100
commit9b431298d0346ce2a181771e9cc78b83c97737f1 (patch)
tree268d5d29b307bccc1611b4180035e9ccc23edb90 /src/main.c
parentAdded back minilibx, added gitignore (diff)
download42-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.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 75a4559..84d7e23 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);
}