diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-02 00:17:42 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-02 00:17:42 +0100 |
commit | 7f450e0664b7eb103358b0eeb0667033f7fead85 (patch) | |
tree | 024a02d21a47074344a2905280e5c4fd78c6eb8b /src/ft_init_funptr.c | |
parent | Preparing music (diff) | |
download | 42-cub3d-7f450e0664b7eb103358b0eeb0667033f7fead85.tar.gz 42-cub3d-7f450e0664b7eb103358b0eeb0667033f7fead85.tar.bz2 42-cub3d-7f450e0664b7eb103358b0eeb0667033f7fead85.tar.xz 42-cub3d-7f450e0664b7eb103358b0eeb0667033f7fead85.tar.zst 42-cub3d-7f450e0664b7eb103358b0eeb0667033f7fead85.zip |
Another song
Diffstat (limited to 'src/ft_init_funptr.c')
-rw-r--r-- | src/ft_init_funptr.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/ft_init_funptr.c b/src/ft_init_funptr.c new file mode 100644 index 0000000..7721381 --- /dev/null +++ b/src/ft_init_funptr.c @@ -0,0 +1,34 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* 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 <cub3.d> +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; + fun_ptr[0] = ft_get_res; + fun_ptr[1] = ft_get_tex_no; + fun_ptr[2] = ft_get_tex_so; + fun_ptr[3] = ft_get_tex_ea; + fun_ptr[4] = ft_get_tex_we; + fun_ptr[5] = ft_get_sprite; + fun_ptr[6] = ft_get_f_color; + fun_ptr[7] = ft_get_c_color; + fun_ptr[8] = ft_get_path_nl; + fun_ptr[9] = ft_get_tex_nl; + fun_ptr[10] = ft_get_music; +} |