aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.cpp')
-rw-r--r--src/world.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/world.cpp b/src/world.cpp
index c20ce17..93cf511 100644
--- a/src/world.cpp
+++ b/src/world.cpp
@@ -18,6 +18,7 @@
*/
#include "world.hpp"
+#include "events/render.hpp"
#include "events/world.hpp"
/*****************
@@ -233,11 +234,11 @@ void WorldSystem::update([[maybe_unused]]entityx::EntityManager& entities,
}
if (currentWorld->meshUpdated) {
- events.emit<WorldMeshUpdateEvent>(
+ events.emit<NewRenderEvent>(
currentWorld->worldVBO,
- currentWorld->mesh.size(),
currentWorld->getTexture(),
- currentWorld->getNormal()
+ currentWorld->getNormal(),
+ currentWorld->mesh.size()
);
}
}