24 lines
469 B
C++
24 lines
469 B
C++
#ifndef OPENGL_SHADER_H
|
|
#define OPENGL_SHADER_H
|
|
|
|
#include <string>
|
|
#include <epoxy/gl.h>
|
|
|
|
class OpenGlShaderProgram
|
|
{
|
|
public:
|
|
OpenGlShaderProgram(std::string vertex_file, std::string geometry_file, std::string fragment_file);
|
|
~OpenGlShaderProgram();
|
|
int compile();
|
|
void unload();
|
|
int use();
|
|
private:
|
|
bool compiled;
|
|
GLuint shader_program;
|
|
std::string vertex_file;
|
|
std::string geometry_file;
|
|
std::string fragment_file;
|
|
};
|
|
|
|
#endif // OPENGL_SHADER_H
|