-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmlx_helpers.c
25 lines (22 loc) · 1.14 KB
/
mlx_helpers.c
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* mlx_helpers.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sadamant <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/05/11 16:39:22 by sadamant #+# #+# */
/* Updated: 2018/05/11 16:39:24 by sadamant ### ########.fr */
/* */
/* ************************************************************************** */
#include "wolf3d.h"
void mlx_put_text_and_value(char *str, int number, int x, int y, int color, t_env *e)
{
char *num;
char *joined;
num = ft_itoa(number);
joined = ft_strjoin(str, num);
mlx_string_put(e->mlx, e->wid, x, y, color, joined);
free(num);
free(joined);
}