From 613cfefbe6fce793d8dd8fe8f8c73ed1e7ae7da2 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Wed, 22 Oct 2014 22:53:46 +0200 Subject: [PATCH] Implemented model.cc --- model.cc | 13 +++++++++++++ model.hh | 6 +++--- 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 model.cc 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