13 VERTEX_SHADER = GL_VERTEX_SHADER,
14 FRAGMENT_SHADER = GL_FRAGMENT_SHADER,
15 GEOMETRY_SHADER = GL_GEOMETRY_SHADER,
16 TESS_EVALUATION_SHADER = GL_TESS_EVALUATION_SHADER,
17 TESS_CONTROL_SHADER = GL_TESS_CONTROL_SHADER
30 explicit GLShader(
const char* filename, GLShaderType _type);
37 explicit GLShader(
const std::string& filename, GLShaderType _type);
47 std::string readFile(
const char *filePath);
Encapsules an OpenGL shader program.
Definition: GLProgram.h:14
GLShader(const char *filename, GLShaderType _type)
Creates a new Shader by reading the given file and compiling it.
Definition: GLShader.cpp:29
Encapsuls an OpenGL shader.
Definition: GLShader.h:21
~GLShader()
Delets the shader.
Definition: GLShader.cpp:64
Definition: GLProgram.h:11