summaryrefslogtreecommitdiff
path: root/include/so_long.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/so_long.h')
-rw-r--r--include/so_long.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/include/so_long.h b/include/so_long.h
index c1c966b..98b4711 100644
--- a/include/so_long.h
+++ b/include/so_long.h
@@ -6,13 +6,25 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/08 14:14:02 by dkaiser #+# #+# */
-/* Updated: 2024/05/09 12:01:41 by dkaiser ### ########.fr */
+/* Updated: 2024/05/09 16:13:43 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef SO_LONG_H
-#define SO_LONG_H
+# define SO_LONG_H
-#include "mlx.h"
+# include "libft.h"
+# include "mlx.h"
+
+typedef struct s_game
+{
+ void *mlx;
+ void *window;
+} t_game;
+
+int init(t_game *game);
+int loop(t_game *game);
+int on_key_down(int key, t_game *game);
+int on_key_up(int keycode, t_game *game);
#endif // SO_LONG_H