blob: ff9d316bf99a9e47733c10fbc44a46da3ff36fdd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#ifndef PHYSICAL_H
#define PHYSICAL_H
#include "gfx/models/mesh.h"
#include "gfx/models/texture.h"
#include <gfx/gl/transform.h>
#include <glm/glm.hpp>
#include <string>
class Camera;
class Shader;
class Physical {
public:
Physical(glm::vec3 where, const std::string & m, const std::string & t);
void render(const Shader & shader, const Camera & camera) const;
[[nodiscard]] const auto &
getPosition() const
{
return location.GetPos();
}
protected:
Transform location;
Mesh mesh;
Texture texture;
};
#endif
|