aboutsummaryrefslogtreecommitdiff
path: root/include/mglpp/graphics/Texture.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mglpp/graphics/Texture.hpp')
-rw-r--r--include/mglpp/graphics/Texture.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/mglpp/graphics/Texture.hpp b/include/mglpp/graphics/Texture.hpp
new file mode 100644
index 0000000..0bd1740
--- /dev/null
+++ b/include/mglpp/graphics/Texture.hpp
@@ -0,0 +1,25 @@
+#ifndef MGLPP_TEXTURE_HPP
+#define MGLPP_TEXTURE_HPP
+
+#include "../system/vec.hpp"
+
+extern "C" {
+#include <mgl/graphics/texture.h>
+}
+
+namespace mgl {
+ class Texture {
+ public:
+ Texture();
+ ~Texture();
+
+ bool load_from_file(const char *filepath);
+ vec2i size() const;
+
+ mgl_texture* internal_texture();
+ private:
+ mgl_texture texture;
+ };
+}
+
+#endif /* MGLPP_TEXTURE_HPP */