#include <ShaderWrap.h>
Public Types | |
enum | ShaderSet { Texturing2d, Texturing3d, Raycasting } |
Public Member Functions | |
ShaderWrap () | |
void | initShader (ShaderSet whichShaders) |
void | updateShader (ShaderSet whichShaders) |
void | updateUniformVars () |
void | updateUniformVarSamplers () |
void | updateUniformVarQuality (int quality) |
void | updateUniformVarTranslucency (int translucency) |
void | updateUniformVarViewVector (float x, float y, float z) |
void | enableProgram () |
void | disableProgram () |
bool | isShaderLoaded () |
Private Member Functions | |
char * | readTextFile (char *fileName) |
int | writeTextFile (char *fileName, char *s) |
void | printShaderInfoLog (GLuint obj) |
void | printProgramInfoLog (GLuint obj) |
Private Attributes | |
GLuint | fragShader2d |
GLuint | fragShader3d |
GLuint | fragShaderRC |
GLuint | vertShader |
bool | shaderLoaded |
GLuint | shaderProgram |
int | shaderQuality |
int | shaderTranslucency |
float | shaderViewVectorX |
float | shaderViewVectorY |
float | shaderViewVectorZ |
ShaderWrap::ShaderWrap | ( | ) |
void ShaderWrap::disableProgram | ( | ) |
void ShaderWrap::enableProgram | ( | ) |
void ShaderWrap::initShader | ( | ShaderSet | whichShaders | ) |
bool ShaderWrap::isShaderLoaded | ( | ) |
void ShaderWrap::printProgramInfoLog | ( | GLuint | obj | ) | [private] |
void ShaderWrap::printShaderInfoLog | ( | GLuint | obj | ) | [private] |
char * ShaderWrap::readTextFile | ( | char * | fileName | ) | [private] |
void ShaderWrap::updateShader | ( | ShaderSet | whichShaders | ) |
void ShaderWrap::updateUniformVarQuality | ( | int | quality | ) |
void ShaderWrap::updateUniformVars | ( | ) |
void ShaderWrap::updateUniformVarSamplers | ( | ) |
void ShaderWrap::updateUniformVarTranslucency | ( | int | translucency | ) |
void ShaderWrap::updateUniformVarViewVector | ( | float | x, | |
float | y, | |||
float | z | |||
) |
int ShaderWrap::writeTextFile | ( | char * | fileName, | |
char * | s | |||
) | [private] |
GLuint ShaderWrap::fragShader2d [private] |
GLuint ShaderWrap::fragShader3d [private] |
GLuint ShaderWrap::fragShaderRC [private] |
bool ShaderWrap::shaderLoaded [private] |
GLuint ShaderWrap::shaderProgram [private] |
int ShaderWrap::shaderQuality [private] |
int ShaderWrap::shaderTranslucency [private] |
float ShaderWrap::shaderViewVectorX [private] |
float ShaderWrap::shaderViewVectorY [private] |
float ShaderWrap::shaderViewVectorZ [private] |
GLuint ShaderWrap::vertShader [private] |