mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
add new model and "optimizations"
This commit is contained in:
parent
1ec5f0b170
commit
df39a9a8f3
7 changed files with 125 additions and 30 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue