ShaderWrap Class Reference

#include <ShaderWrap.h>

List of all members.

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


Member Enumeration Documentation

Enumerator:
Texturing2d 
Texturing3d 
Raycasting 


Constructor & Destructor Documentation

ShaderWrap::ShaderWrap (  ) 


Member Function Documentation

void ShaderWrap::disableProgram (  ) 

void ShaderWrap::enableProgram (  ) 

void ShaderWrap::initShader ( ShaderSet  whichShaders  ) 

Here is the call graph for this function:

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  ) 

Here is the call graph for this function:

void ShaderWrap::updateUniformVarQuality ( int  quality  ) 

void ShaderWrap::updateUniformVars (  ) 

Here is the call graph for this function:

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]


Member Data Documentation

GLuint ShaderWrap::fragShader2d [private]

GLuint ShaderWrap::fragShader3d [private]

GLuint ShaderWrap::fragShaderRC [private]

bool ShaderWrap::shaderLoaded [private]

GLuint ShaderWrap::shaderProgram [private]

GLuint ShaderWrap::vertShader [private]


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

Generated on Wed Dec 10 13:35:14 2008 for VisLu by  doxygen 1.5.7.1