Added constructor with SharedVertexArrayObject argument
This commit is contained in:
parent
4231866d40
commit
3343369732
8
model.cc
8
model.cc
@ -2,14 +2,12 @@
|
||||
|
||||
Model::Model(std::string filePath, float scale) {
|
||||
reference = ACGL::OpenGL::VertexArrayObjectCreator(filePath).create();
|
||||
reference->bind();
|
||||
this->scale = scale;
|
||||
}
|
||||
|
||||
Model::Model(std::string filePath) {
|
||||
reference = ACGL::OpenGL::VertexArrayObjectCreator(filePath).create();
|
||||
reference->bind();
|
||||
this->scale = 1.0f;
|
||||
Model::Model(ACGL::OpenGL::SharedVertexArrayObject vao, float scale){
|
||||
reference = vao;
|
||||
this->scale = scale;
|
||||
}
|
||||
|
||||
Model::Model(){
|
||||
|
4
model.hh
4
model.hh
@ -6,8 +6,8 @@
|
||||
|
||||
class Model {
|
||||
public:
|
||||
Model(std::string filePath, float scale);
|
||||
Model(std::string filePath);
|
||||
Model(std::string filePath, float scale=1.0f);
|
||||
Model(ACGL::OpenGL::SharedVertexArrayObject vao, float scale=1.0f);
|
||||
Model();
|
||||
~Model();
|
||||
ACGL::OpenGL::SharedVertexArrayObject getReference();
|
||||
|
Loading…
Reference in New Issue
Block a user