Engine
|
#include <shader.h>
Public Member Functions | |
Shader (const GLchar *vertexPath, const GLchar *fragmentPath) | |
void | Use () |
Public Attributes | |
GLuint | Program |
Wrapper around OpenGL vertex and fragment shaders
Shader::Shader | ( | const GLchar * | vertexPath, |
const GLchar * | fragmentPath | ||
) |
Creates a Shader that loads GLSL files from the supplied path
vertexPath | path to GLSL file that compiles into the vertex shader |
fragmentPath | path to the GLSL file that compiles into the fragment shader |
void Shader::Use | ( | ) |
Loads the shader for rendering