-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshortcut.c
25 lines (21 loc) · 1.14 KB
/
shortcut.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* shortcut.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lebojo <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/05/30 04:21:33 by lebojo #+# #+# */
/* Updated: 2023/05/30 04:21:44 by lebojo ### ########.fr */
/* */
/* ************************************************************************** */
#include "inc/proto.h"
void *path_to_image(t_level *l, char *path)
{
t_vector wh;
return (mlx_xpm_file_to_image(l->prm.mlx, path, &wh.x, &wh.y));
}
void create_new_window(t_level *l, t_vector size)
{
l->prm.mlx_win = mlx_new_window(l->prm.mlx, size.x, size.y, NAME);
}