Public Member Functions

Shader Class Reference

Shader class. This class is used /// to load and compile shader programs. More...

#include <Shader.h>

List of all members.

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.

Detailed Description

Shader class. This class is used /// to load and compile shader programs.

Definition at line 49 of file Shader.h.


Constructor & Destructor Documentation

Shader::Shader ( void   ) 

Default contructor.

Definition at line 62 of file Shader.cpp.

Shader::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.

Definition at line 68 of file Shader.cpp.

Shader::~Shader ( void   ) 

Destructor.

Definition at line 74 of file Shader.cpp.


Member Function Documentation

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.

bool Shader::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.

Definition at line 79 of file Shader.cpp.

void Shader::setIsGui ( bool  ui  )  [inline]

Set to 'true' if this program is /// a GUI shader.

Definition at line 80 of file Shader.h.

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.


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