#include <OpenGLShader.h>
| Public Methods | |
| OpenGLShader (OpenGLExtensions *ext) | |
| virtual | ~OpenGLShader (void) | 
| int | LoadShader (const char *shaderpath) | 
| Load a named set of shader source files (no filename extensions). More... | |
| int | reset (void) | 
| int | CompileShaders (GLubyte *vertexShader, GLubyte *fragmentshader) | 
| Compile and link loaded shader source files. More... | |
| void | PrintInfoLog (GLhandleARB ProgramObject, const char *msg) | 
| Print compilation log. More... | |
| int | ReadShaderSource (const char *filename, GLubyte **vs, GLubyte **fs) | 
| Read shader source code from files into a byte array. More... | |
| void | UseShader (int onoff) | 
| Make a valid compiled shader the active shader This replaces the fixed-function OpenGL pipeline and any other active shader. More... | |
| Public Attributes | |
| const OpenGLExtensions * | ext | 
| cached OpenGL extensions handle. More... | |
| int | isvalid | 
| succesfully compiled shader flag. More... | |
| GLhandleARB | ProgramObject | 
| ARB program object handle. More... | |
| GLhandleARB | VertexShaderObject | 
| ARB vertex shader object handle. More... | |
| GLhandleARB | FragmentShaderObject | 
| ARB fragment shader object handle. More... | |
| int | lastshader | 
| last shader index/state used. More... | |
Definition at line 31 of file OpenGLShader.h.
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | ||||||||||||
| Compile and link loaded shader source files. 
 | 
| 
 | 
| Load a named set of shader source files (no filename extensions). 
 | 
| 
 | ||||||||||||
| Print compilation log. 
 | 
| 
 | ||||||||||||||||
| Read shader source code from files into a byte array. 
 | 
| 
 | 
| 
 | 
| 
 | 
| Make a valid compiled shader the active shader This replaces the fixed-function OpenGL pipeline and any other active shader. 
 | 
| 
 | 
| cached OpenGL extensions handle. 
 Definition at line 33 of file OpenGLShader.h. | 
| 
 | 
| ARB fragment shader object handle. 
 Definition at line 37 of file OpenGLShader.h. | 
| 
 | 
| succesfully compiled shader flag. 
 Definition at line 34 of file OpenGLShader.h. | 
| 
 | 
| last shader index/state used. 
 Definition at line 38 of file OpenGLShader.h. | 
| 
 | 
| ARB program object handle. 
 Definition at line 35 of file OpenGLShader.h. Referenced by OpenGLRenderer::update_shader_uniforms. | 
| 
 | 
| ARB vertex shader object handle. 
 Definition at line 36 of file OpenGLShader.h. | 
 1.2.14 written by Dimitri van Heesch,
 © 1997-2002
1.2.14 written by Dimitri van Heesch,
 © 1997-2002