Implemented texture.cc

This commit is contained in:
Faerbit 2014-10-22 23:17:18 +02:00
parent 613cfefbe6
commit 2d3a17b6c0
2 changed files with 17 additions and 2 deletions

12
texture.cc Normal file
View File

@ -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;
}

View File

@ -2,14 +2,17 @@
#define TEXTURE_HH_INCLUDED #define TEXTURE_HH_INCLUDED
#include <string> #include <string>
#include <ACGL/OpenGL/Creator/Texture2DCreator.hh>
#include <ACGL/OpenGL/Data/TextureLoadStore.hh>
#include <ACGL/OpenGL/Managers.hh>
class Texture{ class Texture{
public: public:
Texture(std::string filePath); Texture(std::string filePath);
ACGL::OpenGL::SharedTexture2D getReference();
~Texture(); ~Texture();
void load();
private: private:
std::string filePath; ACGL::OpenGL::SharedTexture2D reference;
}; };
#endif #endif