Finished memory management of multiple marios

This commit is contained in:
jaburns
2020-10-28 13:51:03 -06:00
parent 59ba053a70
commit 9daf010774
5 changed files with 110 additions and 36 deletions
+14
View File
@@ -0,0 +1,14 @@
#pragma once
#include <stddef.h>
#include <stdint.h>
struct ObjPool
{
size_t size;
void **objects;
};
extern uint32_t obj_pool_alloc_index( struct ObjPool *pool, size_t size );
extern void obj_pool_free_index( struct ObjPool *pool, uint32_t index );
extern void obj_pool_free_all( struct ObjPool *pool );