MeVisLab Resolution Independence API
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.
 
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.
 

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 SoGLShaderObject, and SoGLShaderProgram.

◆ supportsGeometryShaders()

static bool SoGLShader::supportsGeometryShaders ( )
static

Returns if the hardware supports geometry shaders.


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