created Engine class
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
#include <bit>
|
||||
#include <cstring>
|
||||
|
||||
namespace ougge {
|
||||
|
||||
GameObjectPool::GameObjectPool(u32 size)
|
||||
{
|
||||
useful_assert(size % 64 == 0, "size of GameObjectPool must be a multiple of 64");
|
||||
@@ -123,4 +125,6 @@ GameObjectPool::iterator& GameObjectPool::iterator::operator++()
|
||||
{
|
||||
index = pool->getNearestUsedIndex(index+1);
|
||||
return *this;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user