blob: 1988cb0e4debe1e36351062e819bf9ea94edbf35 (
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
31
32
33
34
35
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_init_funptr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/14 17:28:53 by rbousset #+# #+# */
/* Updated: 2020/02/14 17:28:53 by rbousset ### ########lyon.fr */
/* */
/* ************************************************************************** */
#include <cub3d.h>
void
ft_init_funptr(t_cub *clist)
{
clist->key_ptr[0] = ft_w_key;
clist->key_ptr[1] = ft_a_key;
clist->key_ptr[2] = ft_s_key;
clist->key_ptr[3] = ft_d_key;
clist->key_ptr[4] = ft_left_key;
clist->key_ptr[5] = ft_right_key;
clist->get_ptr[0] = ft_get_res;
clist->get_ptr[1] = ft_get_tex_no;
clist->get_ptr[2] = ft_get_tex_so;
clist->get_ptr[3] = ft_get_tex_ea;
clist->get_ptr[4] = ft_get_tex_we;
clist->get_ptr[5] = ft_get_sprite;
clist->get_ptr[6] = ft_get_f_color;
clist->get_ptr[7] = ft_get_c_color;
clist->get_ptr[8] = ft_get_path_nl;
clist->get_ptr[9] = ft_get_tex_nl;
clist->get_ptr[10] = ft_get_music;
}
|