summaryrefslogtreecommitdiff
path: root/src/ecs.hpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-10-02 19:51:10 -0400
committerJonathan Bradley <jcb@pikum.xyz>2023-10-02 19:51:10 -0400
commit4899815c69894bba3eb1a6faa8ccbbc676751728 (patch)
treee3d5895b35d060d193ec59ccdeaf65dfbad6e145 /src/ecs.hpp
parent2bdee2ce549b1306cafb1d657624eeed4cf7225a (diff)
instancing now works as intended
Diffstat (limited to 'src/ecs.hpp')
-rw-r--r--src/ecs.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ecs.hpp b/src/ecs.hpp
index 6293bc9..685dd81 100644
--- a/src/ecs.hpp
+++ b/src/ecs.hpp
@@ -5,7 +5,6 @@
#include "macros.hpp"
#include "memory.hpp"
#include "components.hpp"
-#include "window.hpp"
#include "glm/vec3.hpp"
@@ -14,6 +13,7 @@ extern DynArray<EntityHandle> EntitiesToBeRemoved;
static struct {
uint64_t Entity = 1ULL << 0;
uint64_t GrBinds = 1ULL << 1;
+ uint64_t Instance = 1ULL << 2;
} ComponentTypes;
void ECS_Init();
@@ -31,5 +31,6 @@ CompGrBinds *ECS_GetGrBinds(uint64_t bucketIndex, uint64_t &itemCount);
CompInstance &ECS_CreateInstance(EntityHandle entHandle, EntityHandle entityTypeEntityHandle);
CompInstance *ECS_GetInstance(EntityHandle entHandle);
+void ECS_UpdateInstance(EntityHandle entHandle, const InstPos &instPos);
#endif /* PKE_ECS_HPP */