blob: d6d59eb8a0296d8c61cf3fb919f375e18857ee68 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#pragma once
#include <GL/glew.h>
class Shader
{
private:
const GLchar *vertex;
const GLchar *fragment;
public:
GLuint Program;
Shader(const GLchar* vertexPath, const GLchar* fragmentPath, const GLchar* geometryPath = nullptr);
void Use();
void Reload();
};
|