diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-02 00:33:11 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-02 00:33:11 +0100 |
commit | fc61b9019c867c88868da308fd2d0bfce7408c7f (patch) | |
tree | 31ca264c2f2cc61613d38a0ffa91e1894e691f53 /src/ft_init_funptr.c | |
parent | Another song (diff) | |
download | 42-cub3d-fc61b9019c867c88868da308fd2d0bfce7408c7f.tar.gz 42-cub3d-fc61b9019c867c88868da308fd2d0bfce7408c7f.tar.bz2 42-cub3d-fc61b9019c867c88868da308fd2d0bfce7408c7f.tar.xz 42-cub3d-fc61b9019c867c88868da308fd2d0bfce7408c7f.tar.zst 42-cub3d-fc61b9019c867c88868da308fd2d0bfce7408c7f.zip |
in progress
Diffstat (limited to 'src/ft_init_funptr.c')
-rw-r--r-- | src/ft_init_funptr.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/ft_init_funptr.c b/src/ft_init_funptr.c index 7721381..1988cb0 100644 --- a/src/ft_init_funptr.c +++ b/src/ft_init_funptr.c @@ -10,7 +10,8 @@ /* */ /* ************************************************************************** */ -#include <cub3.d> +#include <cub3d.h> + void ft_init_funptr(t_cub *clist) { @@ -20,15 +21,15 @@ void 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; + 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; } |