Public Member Functions

Shader Class Reference

#include <Shader.hpp>

List of all members.

Public Member Functions

 Shader (std::string p_filename)
 Constructor.
 ~Shader (void)
 Destructor.
GLint getUniformLocation (const std::string &p_location)
 Gets the uniform location of a Shader.
void bind (void)
 Binds this shader.
void unbind (void)
 Unbinds this shader.

Constructor & Destructor Documentation

Shader::Shader ( std::string  p_filename )

Constructor.

Parameters:
p_filenameFilename of the file.
Shader::~Shader ( void   )

Destructor.


Member Function Documentation

void Shader::bind ( void   )

Binds this shader.

GLint Shader::getUniformLocation ( const std::string &  p_location )

Gets the uniform location of a Shader.

Parameters:
p_locationThe location to locate.
Returns:
The uniform location.
void Shader::unbind ( void   )

Unbinds this shader.


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