From 2d3a17b6c029c0b6dfbea3654ce4bef842d2203d Mon Sep 17 00:00:00 2001 From: Faerbit Date: Wed, 22 Oct 2014 23:17:18 +0200 Subject: [PATCH] Implemented texture.cc --- texture.cc | 12 ++++++++++++ texture.hh | 7 +++++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 texture.cc diff --git a/texture.cc b/texture.cc new file mode 100644 index 0000000..36dd1af --- /dev/null +++ b/texture.cc @@ -0,0 +1,12 @@ +#include "texture.hh" + +Texture::Texture(std::string filePath) { + reference = ACGL::OpenGL::Texture2DFileManager::the()->get(ACGL::OpenGL::Texture2DCreator(filePath)); +} + +Texture::~Texture() { +} + +ACGL::OpenGL::SharedTexture2D Texture::getReference() { + return reference; +} diff --git a/texture.hh b/texture.hh index abb5018..65f7385 100644 --- a/texture.hh +++ b/texture.hh @@ -2,14 +2,17 @@ #define TEXTURE_HH_INCLUDED #include +#include +#include +#include class Texture{ public: Texture(std::string filePath); + ACGL::OpenGL::SharedTexture2D getReference(); ~Texture(); - void load(); private: - std::string filePath; + ACGL::OpenGL::SharedTexture2D reference; }; #endif