summaryrefslogtreecommitdiff
path: root/application
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-01-25 00:55:43 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-01-25 00:55:43 +0000
commitd51f188c130667c44c44371c2e258cb0e29f3505 (patch)
tree3b1b3a691f53964e7530e30a3bdd23879235d27f /application
parentBasic key controls to move the camera around (diff)
downloadilt-d51f188c130667c44c44371c2e258cb0e29f3505.tar.bz2
ilt-d51f188c130667c44c44371c2e258cb0e29f3505.tar.xz
ilt-d51f188c130667c44c44371c2e258cb0e29f3505.zip
Split physical objects from renderable ones
Diffstat (limited to 'application')
-rw-r--r--application/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/application/main.cpp b/application/main.cpp
index 2f9ae36..f510eca 100644
--- a/application/main.cpp
+++ b/application/main.cpp
@@ -9,6 +9,7 @@
#include <gfx/gl/camera.h>
#include <gfx/gl/shader.h>
#include <gfx/gl/transform.h>
+#include <gfx/renderable.h>
#include <glm/glm.hpp>
#include <memory>
#include <numbers>
@@ -115,7 +116,7 @@ public:
world.apply(&WorldObject::tick, t_passed);
windows.apply(&Window::Clear, 0.0F, 0.0F, 0.0F, 1.0F);
- world.apply<Physical>(&Physical::render, shader);
+ world.apply<Renderable>(&Renderable::render, shader);
windows.apply(&Window::SwapBuffers);
if (const auto snz = framelen - t_passed; snz.count() > 0) {