add new model and "optimizations"

This commit is contained in:
MihailRis
2024-06-30 18:24:30 +03:00
parent 1ec5f0b170
commit df39a9a8f3
7 changed files with 123 additions and 28 deletions
+4 -2
View File
@@ -104,6 +104,8 @@ class Entities {
Level* level;
std::unordered_map<entityid_t, entt::entity> entities;
entityid_t nextID = 1;
void preparePhysics();
public:
Entities(Level* level);
@@ -111,8 +113,8 @@ public:
void updatePhysics(float delta);
void update();
void renderDebug(LineBatch& batch, Frustum& frustum);
void render(Assets* assets, ModelBatch& batch, Frustum& frustum);
void renderDebug(LineBatch& batch, const Frustum& frustum);
void render(Assets* assets, ModelBatch& batch, const Frustum& frustum);
entityid_t spawn(EntityDef& def, glm::vec3 pos);