28 lines
738 B
C++
28 lines
738 B
C++
#ifndef OBJECT_HH_INCLUDED
|
|
#define OBJECT_HH_INCLUDED
|
|
|
|
#include "entity.hh"
|
|
#include "model.hh"
|
|
#include "material.hh"
|
|
#include <string>
|
|
#include <ACGL/Math/Math.hh>
|
|
#include <ACGL/OpenGL/Managers.hh>
|
|
#include <ACGL/OpenGL/Objects.hh>
|
|
|
|
class Object : public Entity {
|
|
public:
|
|
Object(Model model, Material material,
|
|
glm::vec3 position, glm::vec3 rotation, bool renderable);
|
|
Object();
|
|
~Object();
|
|
void render(ACGL::OpenGL::SharedShaderProgram shader, bool lightingPass,
|
|
bool texturePass, glm::mat4* viewProjcetionMatrix,
|
|
std::vector<glm::mat4>* additionalMatrices=0);
|
|
private:
|
|
Model model;
|
|
Material material;
|
|
bool renderable;
|
|
};
|
|
|
|
#endif
|