Saxum/object.hh
2014-10-31 10:38:06 +01:00

29 lines
754 B
C++

#ifndef OBJECT_HH_INCLUDED
#define OBJECT_HH_INCLUDED
#include "entity.hh"
#include "model.hh"
#include "texture.hh"
#include "shader.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, Texture texture, glm::vec3 position, glm::vec3 rotation,
glm::vec3 velocity, glm::vec3 angularVelocity, Shader shader);
Object();
~Object();
void render();
private:
ACGL::OpenGL::SharedVertexArrayObject model;
ACGL::OpenGL::SharedTexture2D texture;
glm::vec3 velocity;
glm::vec3 angularVelocity;
ACGL::OpenGL::SharedShaderProgram shader;
};
#endif