/* ************************************************************************** */ /* */ /* ::: o_ :::::: ::: */ /* draw_menu.c :+: / :+::+: :+: */ /* +:+ > +:++:+ +:+ */ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2024/12/20 11:21:20 by whaffman #+#+# #+#+# #+# #+# | */ /* Updated: 2024/12/20 11:21:20 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ #include "fdf.h" mlx_image_t *draw_menu(t_fdf *fdf) { mlx_texture_t *texture; mlx_image_t *img; texture = mlx_load_png("menu.png"); img = mlx_texture_to_image(fdf->mlx, texture); mlx_delete_texture(texture); mlx_image_to_window(fdf->mlx, img, 10, 10); return (img); }