diff --git a/model.cc b/model.cc new file mode 100644 index 0000000..d82d4b2 --- /dev/null +++ b/model.cc @@ -0,0 +1,13 @@ +#include "model.hh" + +Model::Model(std::string filePath) { + reference = ACGL::OpenGL::VertexArrayObjectCreator(filePath).create(); + reference->bind(); +} + +Model::~Model() { +} + +ACGL::OpenGL::SharedVertexArrayObject Model::getReference() { + return reference; +} diff --git a/model.hh b/model.hh index 977989d..ab777b3 100644 --- a/model.hh +++ b/model.hh @@ -2,15 +2,15 @@ #define MODEL_HH_INCLUDED #include +#include class Model { public: Model(std::string filePath); ~Model(); - void load(); - void render(); + ACGL::OpenGL::SharedVertexArrayObject getReference(); private: - std::string filePath; + ACGL::OpenGL::SharedVertexArrayObject reference; }; #endif