diff options
Diffstat (limited to 'src/TextureAtlas.hpp')
-rw-r--r-- | src/TextureAtlas.hpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/TextureAtlas.hpp b/src/TextureAtlas.hpp index 1e5c134..836ebf0 100644 --- a/src/TextureAtlas.hpp +++ b/src/TextureAtlas.hpp @@ -2,7 +2,7 @@ #include <vector> -#include <GL/glew.h> +#include "Gal.hpp" struct TextureData { std::vector<unsigned char> data; //expected format RGBA8888 @@ -16,16 +16,12 @@ struct TextureCoord { }; class TextureAtlas { - GLuint texture; + std::shared_ptr<Gal::Texture> texture; std::vector<TextureCoord> textureCoords; public: TextureAtlas(std::vector<TextureData> &textures); - TextureAtlas(const TextureAtlas &) = delete; - - ~TextureAtlas(); - - inline GLuint GetRawTextureId() { + std::shared_ptr<Gal::Texture> GetGalTexture() { return texture; } |