2014-10-22 20:53:46 +00:00
|
|
|
#include "model.hh"
|
|
|
|
|
2014-11-13 00:22:33 +00:00
|
|
|
Model::Model(std::string filePath, float scale) {
|
2015-03-15 14:18:16 +00:00
|
|
|
#ifdef SAXUM_DEBUG
|
2015-03-15 13:55:12 +00:00
|
|
|
printf("Loading %s\n", filePath.c_str());
|
|
|
|
#endif
|
2014-11-13 00:22:33 +00:00
|
|
|
reference = ACGL::OpenGL::VertexArrayObjectCreator(filePath).create();
|
|
|
|
this->scale = scale;
|
|
|
|
}
|
|
|
|
|
2014-11-14 16:34:50 +00:00
|
|
|
Model::Model(ACGL::OpenGL::SharedVertexArrayObject vao, float scale){
|
|
|
|
reference = vao;
|
|
|
|
this->scale = scale;
|
2014-10-22 20:53:46 +00:00
|
|
|
}
|
|
|
|
|
2014-10-24 08:48:45 +00:00
|
|
|
Model::Model(){
|
|
|
|
}
|
|
|
|
|
2014-10-22 20:53:46 +00:00
|
|
|
Model::~Model() {
|
|
|
|
}
|
|
|
|
|
|
|
|
ACGL::OpenGL::SharedVertexArrayObject Model::getReference() {
|
|
|
|
return reference;
|
|
|
|
}
|
2014-11-13 00:22:33 +00:00
|
|
|
|
|
|
|
void Model::setScale(float scale) {
|
|
|
|
this->scale = scale;
|
|
|
|
}
|
|
|
|
|
|
|
|
float Model::getScale() {
|
|
|
|
return scale;
|
|
|
|
}
|