diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2019-09-17 15:06:39 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2019-09-17 15:06:39 -0400 |
commit | 927348d9d8eb16b469c23ef32486bea5f94c5469 (patch) | |
tree | 58caa1e9eff92c1e6bafe9483c01b746bbecbeaf /src/world.cpp | |
parent | ceda39e4bd2e3a7794f0cb4f96df1de6ebee47d2 (diff) |
made VBO rendering accessible
Diffstat (limited to 'src/world.cpp')
-rw-r--r-- | src/world.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/world.cpp b/src/world.cpp index 7710ecc..9f69c45 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -18,6 +18,7 @@ */ #include "world.hpp" +#include "events/render.hpp" #include "events/world.hpp" /***************** @@ -210,11 +211,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() ); } } |