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

#include <string>
#include "Shader.hpp"
#include "Uniform.hpp"

namespace MC::GFX::Shading {

class Program {
public:
    Program(Shader vertex, Shader fragment);

    U32 get() const;

    Uniform uniform(const std::string& name) const;

    void bind() const;
    void unbind() const;

private:
    U32 m_program;
};

}