OpenGLShader Class Reference
manages enumeration and initialization of OpenGL programmable shaders.
More...
#include <OpenGLShader.h>
List of all members.
Public Methods
Load a named set of shader source files (no filename extensions). More...
Compile and link loaded shader source files. More...
Read shader source code from files into a byte array. More...
Make a valid compiled shader the active shader This replaces the fixed-function OpenGL pipeline and any other active shader. More...
Public Attributes
cached OpenGL extensions handle. More...
succesfully compiled shader flag. More...
ARB vertex shader object handle. More...
ARB fragment shader object handle. More...
last shader index/state used. More...
Detailed Description
manages enumeration and initialization of OpenGL programmable shaders.
Definition at line 31 of file OpenGLShader.h.
Constructor & Destructor Documentation
virtual OpenGLShader::~OpenGLShader
(
void
)
[virtual]
Member Function Documentation
int OpenGLShader::CompileShaders
(
GLubyte *
vertexShader,
GLubyte *
fragmentshader
)
Compile and link loaded shader source files.
int OpenGLShader::LoadShader
(
const char *
shaderpath
)
Load a named set of shader source files (no filename extensions).
void OpenGLShader::PrintInfoLog
(
GLhandleARB
ProgramObject,
const char *
msg
)
int OpenGLShader::ReadShaderSource
(
const char *
filename,
GLubyte **
vs,
GLubyte **
fs
)
Read shader source code from files into a byte array.
int OpenGLShader::reset
(
void
)
void OpenGLShader::UseShader
(
int
onoff
)
Make a valid compiled shader the active shader This replaces the fixed-function OpenGL pipeline and any other active shader.
Member Data Documentation
GLhandleARB OpenGLShader::FragmentShaderObject
ARB fragment shader object handle.
Definition at line 37 of file OpenGLShader.h.
int OpenGLShader::isvalid
int OpenGLShader::lastshader
GLhandleARB OpenGLShader::ProgramObject
GLhandleARB OpenGLShader::VertexShaderObject
The documentation for this class was generated from the following file:
Generated on Mon Nov 17 02:48:51 2025 for VMD (current) by
doxygen1.2.14 written by Dimitri van Heesch,
© 1997-2002