summaryrefslogtreecommitdiffstats
path: root/src/TextureAtlas.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2021-12-25 07:42:52 +0100
committerGitHub <noreply@github.com>2021-12-25 07:42:52 +0100
commit40421159568518bb7573903d14a2c69c64dead95 (patch)
tree15c830dce151bf0b427123efd214173742887e8e /src/TextureAtlas.hpp
parentMerge pull request #70 from LaG1924/ftr/build-3 (diff)
parentFixed missing APIENTRY linux build (diff)
downloadAltCraft-40421159568518bb7573903d14a2c69c64dead95.tar
AltCraft-40421159568518bb7573903d14a2c69c64dead95.tar.gz
AltCraft-40421159568518bb7573903d14a2c69c64dead95.tar.bz2
AltCraft-40421159568518bb7573903d14a2c69c64dead95.tar.lz
AltCraft-40421159568518bb7573903d14a2c69c64dead95.tar.xz
AltCraft-40421159568518bb7573903d14a2c69c64dead95.tar.zst
AltCraft-40421159568518bb7573903d14a2c69c64dead95.zip
Diffstat (limited to 'src/TextureAtlas.hpp')
-rw-r--r--src/TextureAtlas.hpp10
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;
}