Shader class. This class is used /// to load and compile shader programs. More...
#include <Shader.h>
Public Member Functions | |
Shader (void) | |
Default contructor. | |
Shader (const wchar *vertexShaderFilename, const wchar *pixelShaderFilename) | |
Contructor. This constructor will call the init-method /// with the specified parameters. /// vertexShaderFilename Location of the vertex shader file. /// pixelShaderFilename Location of the pixel (fragment) shader file. | |
~Shader (void) | |
Destructor. | |
bool | init (const wchar *vertexShaderFilename, const wchar *pixelShaderFilename) |
Load the vertex und pixel shader from the specified files and /// compile the shader program. /// vertexShaderFilename Location of the vertex shader file. /// pixelShaderFilename Location of the pixel (fragment) shader file. | |
void | uninit (void) |
Uninitialize the shader program. | |
Uniform | getUniform (const char *uniformName) |
Get a uniform parameter from the shader program. /// The program must be valid and compilied. | |
void | use (void) |
Use the shader program. | |
void | setIsGui (bool ui) |
Set to 'true' if this program is /// a GUI shader. |
Shader class. This class is used /// to load and compile shader programs.
Definition at line 49 of file Shader.h.
Shader::Shader | ( | void | ) |
Default contructor.
Definition at line 62 of file Shader.cpp.
Contructor. This constructor will call the init-method /// with the specified parameters. /// vertexShaderFilename Location of the vertex shader file. /// pixelShaderFilename Location of the pixel (fragment) shader file.
Definition at line 68 of file Shader.cpp.
Shader::~Shader | ( | void | ) |
Destructor.
Definition at line 74 of file Shader.cpp.
Uniform Shader::getUniform | ( | const char * | uniformName | ) |
Get a uniform parameter from the shader program. /// The program must be valid and compilied.
Definition at line 184 of file Shader.cpp.
Load the vertex und pixel shader from the specified files and /// compile the shader program. /// vertexShaderFilename Location of the vertex shader file. /// pixelShaderFilename Location of the pixel (fragment) shader file.
Definition at line 79 of file Shader.cpp.
void Shader::setIsGui | ( | bool | ui | ) | [inline] |
void Shader::uninit | ( | void | ) |
Uninitialize the shader program.
Definition at line 168 of file Shader.cpp.
void Shader::use | ( | void | ) |
Use the shader program.
Definition at line 189 of file Shader.cpp.