blob: 857dc2f41583346699eaf9cd220d0758d70b468f (
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
25
|
#pragma once
#include <string>
#include <vector>
#include "Shader.hpp"
#include "../Math/Math.hpp"
#include "Uniform.hpp"
namespace MC {
class ShaderProgram {
public:
ShaderProgram(Shader fragment, Shader vertex);
uint32_t get() const;
Uniform uniform(const std::string& name) const;
void bind() const;
private:
uint32_t m_program;
};
}
|