summary refs log tree commit diff
path: root/src/GFX/Shading/Uniform.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/GFX/Shading/Uniform.hpp')
-rw-r--r--src/GFX/Shading/Uniform.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/GFX/Shading/Uniform.hpp b/src/GFX/Shading/Uniform.hpp
new file mode 100644
index 0000000..8035dfe
--- /dev/null
+++ b/src/GFX/Shading/Uniform.hpp
@@ -0,0 +1,23 @@
+#pragma once
+
+#include <cstdint>
+#include <string>
+#include <utility>
+#include "../../Math/Math.hpp"
+
+namespace MC::GFX::Shading {
+
+class Uniform {
+public:
+    Uniform(std::string name, uint32_t index)
+        : m_name(std::move(name)), m_index(index) {};
+
+    void set(Matrix<4, 4> value) const;
+    void set(Vector<3> value) const;
+
+private:
+    std::string m_name;
+    uint32_t m_index;
+};
+
+}