summaryrefslogtreecommitdiff
path: root/game
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 /game
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 'game')
-rw-r--r--game/physical.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/game/physical.h b/game/physical.h
index 5f624b0..44af5e6 100644
--- a/game/physical.h
+++ b/game/physical.h
@@ -2,6 +2,7 @@
#define PHYSICAL_H
#include <gfx/gl/transform.h>
+#include <gfx/renderable.h>
#include <glm/glm.hpp>
#include <memory>
#include <string>
@@ -11,11 +12,11 @@ class Mesh;
class Texture;
template<typename Obj> class Cache;
-class Physical {
+class Physical : public Renderable {
public:
Physical(glm::vec3 where, const std::string & m, const std::string & t);
- void render(const Shader & shader) const;
+ void render(const Shader & shader) const override;
[[nodiscard]] const auto &
getPosition() const