aboutsummaryrefslogtreecommitdiffstats
path: root/src/graphics/Texture.hpp
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-04-02 15:12:37 +0000
committerJoursoir <chat@joursoir.net>2021-04-02 15:15:03 +0000
commit8217e19e42dbfbfe9b56ac0174699ea9c36ba667 (patch)
treea35eeb845b568a14a6be6280af4932eae8b73be0 /src/graphics/Texture.hpp
parent56812c9af55b776db0a6b5f263e747492bc7d47b (diff)
downloadspace-simulator-8217e19e42dbfbfe9b56ac0174699ea9c36ba667.tar.gz
space-simulator-8217e19e42dbfbfe9b56ac0174699ea9c36ba667.tar.bz2
space-simulator-8217e19e42dbfbfe9b56ac0174699ea9c36ba667.zip
add texture routines
Diffstat (limited to 'src/graphics/Texture.hpp')
-rw-r--r--src/graphics/Texture.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/graphics/Texture.hpp b/src/graphics/Texture.hpp
new file mode 100644
index 0000000..02298f2
--- /dev/null
+++ b/src/graphics/Texture.hpp
@@ -0,0 +1,16 @@
+#ifndef ENGINE_TEXTURE_H
+#define ENGINE_TEXTURE_H
+
+class Texture {
+ int target;
+ unsigned int texture_id;
+public:
+ Texture(int type);
+ ~Texture();
+
+ int LoadImage(const char *path);
+ int LoadImage(const char **paths);
+ void Bind();
+};
+
+#endif /* ENGINE_TEXTURE_H */