← index
OpenGL.Examples/GLFW/011.Rotate/gl_shader.hpp
Source: OpenGL.Examples/GLFW/011.Rotate/gl_shader.hpp
#ifndef __GL_SHADER__
#define __GL_SHADER__

#include<iostream>
#include<string>
#include<GL/glew.h>
#include<GLFW/glfw3.h>

class ShaderProgram {
public:
    int printShaderLog(GLuint err);
    void printProgramLog(int p);
    bool checkError();
    GLuint createProgram(const char *vert, const char *frag);
    GLuint createProgramFromFile(const std::string &vert, const std::string &frag);
};

#endif