summary refs log tree commit diff
path: root/src/GFX/Shading/Program.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/GFX/Shading/Program.hpp')
-rw-r--r--src/GFX/Shading/Program.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/GFX/Shading/Program.hpp b/src/GFX/Shading/Program.hpp
new file mode 100644
index 0000000..15c9899
--- /dev/null
+++ b/src/GFX/Shading/Program.hpp
@@ -0,0 +1,25 @@
+#pragma once
+
+#include <string>
+#include <vector>
+#include "Shader.hpp"
+#include "../../Math/Math.hpp"
+#include "Uniform.hpp"
+
+namespace MC::GFX::Shading {
+
+class Program {
+public:
+    Program(Shader fragment, Shader vertex);
+
+    uint32_t get() const;
+
+    Uniform uniform(const std::string& name) const;
+
+    void bind() const;
+
+private:
+    uint32_t m_program;
+};
+
+}
\ No newline at end of file