From 0631fb666d2a28a6eb9b8d1578675699b41a5de6 Mon Sep 17 00:00:00 2001 From: Mel Date: Tue, 4 Oct 2022 01:18:19 +0200 Subject: Cube Rendering --- src/Shader/Uniform.hpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/Shader/Uniform.hpp (limited to 'src/Shader/Uniform.hpp') diff --git a/src/Shader/Uniform.hpp b/src/Shader/Uniform.hpp new file mode 100644 index 0000000..58cdc28 --- /dev/null +++ b/src/Shader/Uniform.hpp @@ -0,0 +1,23 @@ +#pragma once + +#include +#include +#include +#include "../Math/Math.hpp" + +namespace MC { + +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; +}; + +} -- cgit 1.4.1