-
Notifications
You must be signed in to change notification settings - Fork 0
/
string.c
25 lines (22 loc) · 1.11 KB
/
string.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* string.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mgaspail <mgaspail@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/01/18 15:32:40 by mgaspail #+# #+# */
/* Updated: 2014/01/18 20:08:39 by mgaspail ### ########.fr */
/* */
/* ************************************************************************** */
#include "wolf.h"
void put_hud(t_data *e)
{
char *str;
if (e->pfps == 1)
{
mlx_string_put(e->mlx, e->win, 50, e->h - 40, 0x550033,"FPS :");
str = ft_itoa(e->fps);
mlx_string_put(e->mlx, e->win, 90, e->h - 40, 0x550033, str);
}
}