changed rgb deal, and improve memorybook with 2d

This commit is contained in:
hugogogo
2022-05-01 22:55:00 +02:00
parent 43852938c4
commit eb5f2db7fa
9 changed files with 60 additions and 54 deletions

19
srcs/mem/memorybook_2d.c Normal file
View File

@@ -0,0 +1,19 @@
#include "cube3d.h"
void mb_add_2d(void **addr, int nb)
{
while (nb)
{
mb_add(addr[nb]);
nb--;
}
}
void mb_free_2d(void **addr, int nb)
{
while (nb)
{
mb_free(addr[nb]);
nb--;
}
}