blob: d195a8aa1860165249122d6f654a16707dfca524 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#pragma once
#include <GL/glew.h>
class GlShader {
public:
GlShader() = default;
bool InitProgram();
void UseProgram();
private:
bool CompileShader(GLuint *id, const char *src, GLenum type);
private:
GLuint m_ProgramId;
};
|