32 lines
1.2 KiB
C
32 lines
1.2 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* image.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: bszilas <bszilas@student.42vienna.com> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/09/12 14:12:28 by victor #+# #+# */
|
|
/* Updated: 2025/05/31 13:19:03 by victor ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "../../minirt.h"
|
|
|
|
void pixels_image_syncronize(Color *image, t_pixel *pixel)
|
|
{
|
|
uint x;
|
|
uint y;
|
|
|
|
y = 0;
|
|
while (y < HI)
|
|
{
|
|
x = 0;
|
|
while (x < WI)
|
|
{
|
|
pixel[y * WI + x].color = &image[y * WI + x];
|
|
x++;
|
|
}
|
|
y++;
|
|
}
|
|
}
|