adding image optimizations control over make call

This commit is contained in:
2023-08-09 13:50:33 +02:00
parent f6fcb214e5
commit 26037936e8
8 changed files with 58 additions and 38 deletions

View File

@@ -6,7 +6,7 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/04 17:55:21 by maldavid #+# #+# */
/* Updated: 2023/06/06 16:22:26 by maldavid ### ########.fr */
/* Updated: 2023/08/02 12:36:11 by maldavid ### ########.fr */
/* */
/* ************************************************************************** */
@@ -57,12 +57,12 @@ void *create_image(t_mlx *mlx)
{
if (i[0] < 10000 || i[0] > 20000)
{
pixel[i[0] + 0] = 0xFF;
pixel[i[0] + 1] = i[0];
pixel[i[0] + 2] = 0x00;
pixel[i[0] + 3] = 0xFF;
pixel[0] = i[0];
pixel[1] = i[1];
pixel[2] = i[2];
pixel[3] = 0xFF;
mlx_set_image_pixel(mlx->mlx, img, i[1], i[2], *((int *)pixel));
}
mlx_set_image_pixel(mlx->mlx, img, i[1], i[2], *((int *)pixel));
i[0] += 4;
i[1]++;
if (i[1] >= 100)

View File

@@ -1 +1 @@
clang main.c ../libmlx.so `/nfs/homes/maldavid/.xmake/packages/l/libsdl/2.26.4/8dfbcb8049e744a597cd5333e1b399cd/bin/sdl2-config --cflags --libs` -g && ./a.out
clang main.c ../libmlx.so -lSDL2 -g && ./a.out