aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_hud_threads.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-23 22:31:15 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-23 22:31:15 +0100
commit5ad03a84ee06712ef4331a173c710657da70d0d0 (patch)
treebc5cef668090ea62ddff826ca9f89dabaeedd50f /src/ft_hud_threads.c
parentSome threads (diff)
download42-cub3d-5ad03a84ee06712ef4331a173c710657da70d0d0.tar.gz
42-cub3d-5ad03a84ee06712ef4331a173c710657da70d0d0.tar.bz2
42-cub3d-5ad03a84ee06712ef4331a173c710657da70d0d0.tar.xz
42-cub3d-5ad03a84ee06712ef4331a173c710657da70d0d0.tar.zst
42-cub3d-5ad03a84ee06712ef4331a173c710657da70d0d0.zip
got work to do
Diffstat (limited to '')
-rw-r--r--src/ft_hud_threads.c70
1 files changed, 70 insertions, 0 deletions
diff --git a/src/ft_hud_threads.c b/src/ft_hud_threads.c
new file mode 100644
index 0000000..c120dc9
--- /dev/null
+++ b/src/ft_hud_threads.c
@@ -0,0 +1,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);
+}