changed rgb deal, and improve memorybook with 2d
This commit is contained in:
19
srcs/mem/memorybook_2d.c
Normal file
19
srcs/mem/memorybook_2d.c
Normal 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--;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user