blob: f4c17d43f604f05c09f428ff17a96bb64106480e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "physical.h"
#include <gfx/gl/shader.h>
Physical::Physical(glm::vec3 where, const std::string & m, const std::string & t) :
location {where}, mesh {m}, texture {t}
{
}
void
Physical::render(const Shader & shader, const Camera & camera) const
{
shader.Update(location, camera);
texture.Bind();
mesh.Draw();
}
|