-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdraw_that.c
29 lines (26 loc) · 1.14 KB
/
draw_that.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* draw_that.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dkushche <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/02/06 17:05:14 by dkushche #+# #+# */
/* Updated: 2018/02/06 17:05:14 by dkushche ### ########.fr */
/* */
/* ************************************************************************** */
#include "rtv1.h"
void draw_that(t_scene *scenes, t_inf inf)
{
int i;
int x;
int y;
i = -1;
while (++i < 4)
{
x = (i % 2) * scenes[i].wid;
y = (i / 2) * scenes[i].hei;
mlx_put_image_to_window(inf.mlx, inf.win, scenes[i].im, x, y);
}
free(scenes);
}