summaryrefslogtreecommitdiff
path: root/game/physical.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/physical.cpp')
-rw-r--r--game/physical.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/game/physical.cpp b/game/physical.cpp
deleted file mode 100644
index ec3221f..0000000
--- a/game/physical.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-#include "physical.h"
-#include "gfx/models/mesh.h"
-#include "gfx/models/texture.h"
-#include <cache.h>
-#include <gfx/gl/shader.h>
-#include <gfx/gl/transform.h>
-
-Cache<Mesh> Physical::cachedMesh;
-
-Physical::Physical(glm::vec3 where, const std::string & m, const std::string & t) :
- location {where}, mesh {cachedMesh.get(m)}, texture {Texture::cachedTexture.get(t)}
-{
-}
-
-void
-Physical::render(const Shader & shader) const
-{
- shader.setModel(location.GetModel());
- texture->Bind();
- mesh->Draw();
-}