mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-12 07:03:34 +00:00
working on window manager
This commit is contained in:
11
test/main.c
11
test/main.c
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user