Files
PixelDefense/engine/breeze/utils/object_pool.h
2023-11-15 20:15:59 +01:00

20 lines
470 B
C

#ifndef BREEZE_OBJECT_POOL_H
#define BREEZE_OBJECT_POOL_H
#include "../defines.h"
typedef struct BzObjectPool BzObjectPool;
typedef struct BzObjectPoolDesc {
size_t objectSize;
size_t numObjects;
} BzObjectPoolDesc;
BzObjectPool *bzObjectPoolCreate(const BzObjectPoolDesc *desc);
void bzObjectPoolDestroy(BzObjectPool *pool);
void *bzObjectPool(BzObjectPool *pool);
void bzObjectPoolRelease(BzObjectPool *pool, void *object);
#endif //BREEZE_OBJECT_POOL_H