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:
|
2014-11-14 16:34:50 +00:00
|
|
|
Model(std::string filePath, float scale=1.0f);
|
2015-02-13 12:46:41 +00:00
|
|
|
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();
|
2014-11-13 00:22:33 +00:00
|
|
|
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;
|
2014-11-13 00:22:33 +00:00
|
|
|
float scale;
|
2014-10-20 17:09:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|