summaryrefslogtreecommitdiff
path: root/include/so_long.h
blob: 98b47117326de67147efd7d3ccf14ab2d25bda36 (plain)
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
26
27
28
29
30
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   so_long.h                                          :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: dkaiser <dkaiser@student.42heilbronn.de    +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2024/05/08 14:14:02 by dkaiser           #+#    #+#             */
/*   Updated: 2024/05/09 16:13:43 by dkaiser          ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#ifndef SO_LONG_H
# define SO_LONG_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