fdf/src/draw/draw_menu.c
2024-12-20 12:28:29 +01:00

26 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: o_ :::::: ::: */
/* draw_menu.c :+: / :+::+: :+: */
/* +:+ > +:++:+ +:+ */
/* By: whaffman <whaffman@student.codam.nl> +#+ +:+ +#++#++:++#++ */
/* +#+ +#+#+ +#++#+ +#+ \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);
}