MeVisLab Toolbox Reference
SoGLShader Class Reference

Abstract base class for shader objects. More...

#include <SoGLShader.h>

Inheritance diagram for SoGLShader:
SoGLShaderObject SoGLShaderProgram SoGLCompleteShader SoGLInventorShaderProgram

Static Public Member Functions

static SbBool isSupported ()
 Returns 'TRUE' if vertex and fragment shaders are supported by OpenGL. More...
 
static bool supportsGeometryShaders ()
 Returns if the hardware supports geometry shaders. More...
 
static void printCapabilities ()
 Prints capabilities of the OpenGL implementation. More...
 

Protected Member Functions

 SoGLShader ()
 Constructor. More...
 
virtual ~SoGLShader ()
 Destructor. More...
 
virtual void reset ()
 Free all resources (OpenGL too) and reset instance to initial state. More...
 
void errClear (const char *string=nullptr) const
 Clear OpenGL error state and print any previously not displayed error message. More...
 
void errCheck (const char *string=nullptr) const
 Check for OpenGL errors and print error message if one is found. More...
 
SbBool error (const char *string=nullptr) const
 Returns 'TRUE' if OpenGL error is found. More...
 

Detailed Description

Abstract base class for shader objects.

Definition at line 27 of file SoGLShader.h.

Constructor & Destructor Documentation

◆ SoGLShader()

SoGLShader::SoGLShader ( )
protected

Constructor.

◆ ~SoGLShader()

virtual SoGLShader::~SoGLShader ( )
inlineprotectedvirtual

Destructor.

Definition at line 46 of file SoGLShader.h.

Member Function Documentation

◆ errCheck()

void SoGLShader::errCheck ( const char *  string = nullptr) const
protected

Check for OpenGL errors and print error message if one is found.

◆ errClear()

void SoGLShader::errClear ( const char *  string = nullptr) const
protected

Clear OpenGL error state and print any previously not displayed error message.

◆ error()

SbBool SoGLShader::error ( const char *  string = nullptr) const
inlineprotected

Returns 'TRUE' if OpenGL error is found.

Definition at line 56 of file SoGLShader.h.

◆ isSupported()

static SbBool SoGLShader::isSupported ( )
static

Returns 'TRUE' if vertex and fragment shaders are supported by OpenGL.

◆ printCapabilities()

static void SoGLShader::printCapabilities ( )
static

Prints capabilities of the OpenGL implementation.

◆ reset()

virtual void SoGLShader::reset ( )
protectedvirtual

Free all resources (OpenGL too) and reset instance to initial state.

Reimplemented in SoGLShaderProgram, and SoGLShaderObject.

◆ supportsGeometryShaders()

static bool SoGLShader::supportsGeometryShaders ( )
static

Returns if the hardware supports geometry shaders.


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