ComputerGraphik TU WIEN
|
Encapsulates a shader program. More...
#include <shader.hpp>
Classes | |
class | ShaderObj |
Helper class to manage one Shader object file in RAII style. More... | |
Public Member Functions | |
Shader (const std::vector< std::pair< GLenum, std::string > > &shaderPaths) | |
~Shader () | |
void | use () const |
GLuint | programHandle () const |
Static Public Member Functions | |
static void | loadTextFile (const std::string &filename, std::vector< char > &data) |
Static Private Member Functions | |
static GLuint | compileShader (const std::vector< char > &shaderSrc, GLenum shaderType) |
Private Attributes | |
GLuint | program_handle |
Friends | |
class | ShaderObj |
Encapsulates a shader program.
Shader::Shader | ( | const std::vector< std::pair< GLenum, std::string > > & | shaderPaths | ) |
Shader::~Shader | ( | ) |
|
staticprivate |
|
static |
|
inline |
|
inline |
|
friend |
|
private |