working on window manager

This commit is contained in:
2022-10-05 20:37:04 +02:00
parent 3ee3a5899b
commit b275918de6
10 changed files with 83 additions and 24 deletions

View File

@@ -6,16 +6,23 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/04 17:55:21 by maldavid #+# #+# */
/* Updated: 2022/10/05 16:58:46 by maldavid ### ########.fr */
/* Updated: 2022/10/05 19:25:46 by maldavid ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdio.h>
#include "../includes/mlx.h"
int main(void)
{
void *win_ptr;
int x;
int y;
mlx_init();
mlx_new_window(400, 400, "My window");
win_ptr = mlx_new_window(400, 400, "My window");
mlx_mouse_get_pos(win_ptr, &x, &y);
printf("%d, %d\n", x, y);
mlx_loop();
return (0);
}

1
test/run.sh git.filemode.executable_file
View File

@@ -0,0 +1 @@
clear && gcc main.c ../libMicroX.so `sdl2-config --cflags --libs` -lSDL2 && ./a.out