-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmlx_help.c
22 lines (19 loc) · 1.08 KB
/
mlx_help.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* mlx_help.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lbrandy <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/02/10 13:48:10 by lbrandy #+# #+# */
/* Updated: 2021/02/10 13:52:05 by lbrandy ### ########.fr */
/* */
/* ************************************************************************** */
#include "cub3D.h"
#include "./source/libft/libft.h"
void my_pixel_put(t_win *win, int x, int y, int color)
{
char *dst;
dst = win->addr + (y * win->length + x * (win->bpp / 8));
*(unsigned int*)dst = color;
}