42_solong/main.c
Camille Chauvet c179afd6ec kekw
2022-12-22 17:41:31 +01:00

30 lines
1.2 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/12/12 17:20:17 by cchauvet #+# #+# */
/* Updated: 2022/12/14 18:15:00 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
#include "solong.h"
int main(void)
{
void *window_manager;
void *window;
t_square square;
window_manager = mlx_init();
window = mlx_new_window(window_manager, 500, 500, "Hello world!");
square.x = 10;
square.y = 10;
square.size = 400;
square.color = ft_strdup("blue");
ft_draw_square(window_manager, window, square);
mlx_loop(window_manager);
}