init.h
1 /* ************************************************************************** */ 2 /* */ 3 /* ::: :::::::: */ 4 /* init.h :+: :+: :+: */ 5 /* +:+ +:+ +:+ */ 6 /* By: gychoi <gychoi@student.42seoul.kr> +#+ +:+ +#+ */ 7 /* +#+#+#+#+#+ +#+ */ 8 /* Created: 2023/05/24 18:03:00 by gychoi #+# #+# */ 9 /* Updated: 2023/05/25 19:49:12 by gychoi ### ########.fr */ 10 /* */ 11 /* ************************************************************************** */ 12 13 #ifndef INIT_H 14 # define INIT_H 15 16 # include "mlx.h" 17 # include "pracrt.h" 18 # include "struct.h" 19 20 typedef struct s_img 21 { 22 void *img; 23 char *addr; 24 int bpp; 25 int len; 26 int endian; 27 } t_img; 28 29 typedef struct s_mlx 30 { 31 void *mlx; 32 void *win; 33 } t_mlx; 34 35 t_mlx init_mlx(void); 36 t_img init_img(t_mlx mlx); 37 38 #endif