Engine
Shader Class Reference

#include <shader.h>

Public Member Functions

 Shader (const GLchar *vertexPath, const GLchar *fragmentPath)
 
void Use ()
 

Public Attributes

GLuint Program
 

Detailed Description

Wrapper around OpenGL vertex and fragment shaders

Constructor & Destructor Documentation

Shader::Shader ( const GLchar *  vertexPath,
const GLchar *  fragmentPath 
)

Creates a Shader that loads GLSL files from the supplied path

Parameters
vertexPathpath to GLSL file that compiles into the vertex shader
fragmentPathpath to the GLSL file that compiles into the fragment shader

Member Function Documentation

void Shader::Use ( )

Loads the shader for rendering


The documentation for this class was generated from the following files: