Implemented texture.cc
This commit is contained in:
parent
613cfefbe6
commit
2d3a17b6c0
12
texture.cc
Normal file
12
texture.cc
Normal 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;
|
||||
}
|
@ -2,14 +2,17 @@
|
||||
#define TEXTURE_HH_INCLUDED
|
||||
|
||||
#include <string>
|
||||
#include <ACGL/OpenGL/Creator/Texture2DCreator.hh>
|
||||
#include <ACGL/OpenGL/Data/TextureLoadStore.hh>
|
||||
#include <ACGL/OpenGL/Managers.hh>
|
||||
|
||||
class Texture{
|
||||
public:
|
||||
Texture(std::string filePath);
|
||||
ACGL::OpenGL::SharedTexture2D getReference();
|
||||
~Texture();
|
||||
void load();
|
||||
private:
|
||||
std::string filePath;
|
||||
ACGL::OpenGL::SharedTexture2D reference;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user