created Engine class

This commit is contained in:
2025-04-24 04:50:56 +05:00
parent 366dd1214c
commit 3477b05cd8
11 changed files with 152 additions and 106 deletions

View File

@@ -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;
}
}
}