]> git.lizzy.rs Git - dragonblocks3d.git/blobdiff - src/texture.hpp
New structure
[dragonblocks3d.git] / src / texture.hpp
diff --git a/src/texture.hpp b/src/texture.hpp
new file mode 100644 (file)
index 0000000..eb9e0c2
--- /dev/null
@@ -0,0 +1,26 @@
+#pragma once
+
+#include <string>
+#include "gl.hpp"
+
+namespace dragonblocks
+{
+       class Texture
+       {
+               public:
+               static bool mipmap;
+               static bool bilinear_filter;
+               
+               static void initArgs();
+               
+               void bind() const;
+               void load(const std::string &);
+               Texture() = default;
+               Texture(const Texture &) = default;
+               
+               private:
+               static GLenum min_filter, mag_filter;
+               
+               GLuint id;
+       };
+}