Saxum/game/model.hh

22 lines
549 B
C++
Raw Permalink Normal View History

2014-10-20 17:09:03 +00:00
#ifndef MODEL_HH_INCLUDED
#define MODEL_HH_INCLUDED
#include <string>
2014-10-22 20:53:46 +00:00
#include <ACGL/OpenGL/Creator/VertexArrayObjectCreator.hh>
2014-10-20 17:09:03 +00:00
class Model {
public:
Model(std::string filePath, float scale=1.0f);
Model(ACGL::OpenGL::SharedVertexArrayObject vao, float scale=1.0f);
Model();
2014-10-20 17:09:03 +00:00
~Model();
2014-10-22 20:53:46 +00:00
ACGL::OpenGL::SharedVertexArrayObject getReference();
void setScale(float scale);
float getScale();
2014-10-20 17:09:03 +00:00
private:
2014-10-22 20:53:46 +00:00
ACGL::OpenGL::SharedVertexArrayObject reference;
float scale;
2014-10-20 17:09:03 +00:00
};
#endif