blob: c120dc96fe2f4e9566cef4fd4c5704da8b6a8806 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_hud_threads.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/22 20:02:47 by rbousset #+# #+# */
/* Updated: 2020/02/22 20:02:48 by rbousset ### ########lyon.fr */
/* */
/* ************************************************************************** */
#include <cub3d.h>
#include <stdint.h>
#include <pthread.h>
void
*ft_ammo_back_thread(void *vargp)
{
t_cub *clist;
clist = (t_cub *)vargp;
ft_draw_ammo_back(clist);
pthread_exit(0x0);
return (0x0);
}
void
*ft_minimap_back_thread(void *vargp)
{
t_cub *clist;
clist = (t_cub *)vargp;
ft_draw_minimap_back(clist);
pthread_exit(0x0);
return (0x0);
}
void
*ft_map_thread(void *vargp)
{
t_cub *clist;
clist = (t_cub *)vargp;
ft_draw_map(clist->mlist.map, clist);
pthread_exit(0x0);
return (0x0);
}
void
*ft_life_bar_thread(void *vargp)
{
t_cub *clist;
clist = (t_cub *)vargp;
ft_draw_life_bar(clist);
pthread_exit(0x0);
return (0x0);
}
void
*ft_ammo_bar_thread(void *vargp)
{
t_cub *clist;
clist = (t_cub *)vargp;
ft_draw_ammo_bar(clist);
pthread_exit(0x0);
return (0x0);
}
|