MeVisLab Toolbox Reference
|
Abstract base class for shader objects. More...
#include <SoGLShader.h>
Static Public Member Functions | |
static SbBool | isSupported () |
Returns 'TRUE' if vertex and fragment shaders are supported by OpenGL. | |
static bool | supportsGeometryShaders () |
Returns if the hardware supports geometry shaders. | |
static void | printCapabilities () |
Prints capabilities of the OpenGL implementation. | |
Protected Member Functions | |
SoGLShader () | |
Constructor. | |
virtual | ~SoGLShader () |
Destructor. | |
virtual void | reset () |
Free all resources (OpenGL too) and reset instance to initial state. | |
void | errClear (const char *string=nullptr) const |
Clear OpenGL error state and print any previously not displayed error message. | |
void | errCheck (const char *string=nullptr) const |
Check for OpenGL errors and print error message if one is found. | |
SbBool | error (const char *string=nullptr) const |
Returns 'TRUE' if OpenGL error is found. | |
Abstract base class for shader objects.
Definition at line 27 of file SoGLShader.h.
|
protected |
Constructor.
|
inlineprotectedvirtual |
Destructor.
Definition at line 46 of file SoGLShader.h.
Check for OpenGL errors and print error message if one is found.
Clear OpenGL error state and print any previously not displayed error message.
Returns 'TRUE' if OpenGL error is found.
Definition at line 56 of file SoGLShader.h.
References mlrange_cast().
Returns 'TRUE' if vertex and fragment shaders are supported by OpenGL.
Prints capabilities of the OpenGL implementation.
Free all resources (OpenGL too) and reset instance to initial state.
Reimplemented in SoGLShaderObject, and SoGLShaderProgram.
Returns if the hardware supports geometry shaders.