summary refs log tree commit diff
path: root/src/Shader/Uniform.hpp
blob: 58cdc280c8c52aa9d87463f01b41406ffaf14d67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <cstdint>
#include <string>
#include <utility>
#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;
};

}