-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_settings.c
38 lines (34 loc) · 1.91 KB
/
ft_settings.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
26
27
28
29
30
31
32
33
34
35
36
37
38
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_settings.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: pkerckho <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/02/18 15:44:46 by pkerckho #+# #+# */
/* Updated: 2016/03/09 10:49:20 by pkerckho ### ########.fr */
/* */
/* ************************************************************************** */
#include "fdf.h"
/*
** This setting function is used to display our settings in the top-left
** corner, i_y + (something + 16) is set for the space between our lines.
*/
void ft_settings(t_env e)
{
int i_y;
i_y = 0;
mlx_string_put(e.mlx, e.win, 0, i_y, 0xccccff, I_SETINGS);
mlx_string_put(e.mlx, e.win, 0, i_y + 16, 0xccccff, I_KEY_UP);
mlx_string_put(e.mlx, e.win, 0, i_y + 32, 0xccccff, I_KEY_DOWN);
mlx_string_put(e.mlx, e.win, 0, i_y + 48, 0xccccff, I_KEY_LEFT);
mlx_string_put(e.mlx, e.win, 0, i_y + 64, 0xccccff, I_KEY_RIGHT);
mlx_string_put(e.mlx, e.win, 0, i_y + 80, 0xccccff, I_KEY_PLUS);
mlx_string_put(e.mlx, e.win, 0, i_y + 96, 0xccccff, I_KEY_MINUS);
mlx_string_put(e.mlx, e.win, 0, i_y + 112, 0xccccff, I_PAGE_UP);
mlx_string_put(e.mlx, e.win, 0, i_y + 128, 0xccccff, I_PAGE_DOWN);
mlx_string_put(e.mlx, e.win, 0, i_y + 144, 0xccccff, I_STAR);
mlx_string_put(e.mlx, e.win, 0, i_y + 160, 0xccccff, I_SLASH);
mlx_string_put(e.mlx, e.win, 0, i_y + 176, 0xccccff, I_RESET);
mlx_string_put(e.mlx, e.win, 0, i_y + 192, 0xccccff, I_ESC);
}