MeVisLab Toolbox Reference
SoGLShaderProgramElement Class Reference

Open Inventor element representing a SoGLShaderProgram in the Open Inventor state. More...

#include <SoGLShaderProgramElement.h>

Inheritance diagram for SoGLShaderProgramElement:

Public Member Functions

void init (SoState *state) override
 Initialize element.
 
void push (SoState *state) override
 Override push()/pop() method so side effects can occur in GL.
 
void pop (SoState *state, const SoElement *prevTopElement) override
 

Static Public Member Functions

static void set (SoState *state, SoNode *node, SoGLShaderProgram *glShaderProgram)
 Sets the current shader in the state.
 
static SoGLShaderProgramget (SoState *state)
 Returns the current shader from the state.
 
static void initClass ()
 Initialize class with runtime type system.
 

Protected Member Functions

 ~SoGLShaderProgramElement () override
 Destructor.
 

Protected Attributes

SoGLShaderProgram_glShaderProgram
 

Detailed Description

Open Inventor element representing a SoGLShaderProgram in the Open Inventor state.

Definition at line 25 of file SoGLShaderProgramElement.h.

Constructor & Destructor Documentation

◆ ~SoGLShaderProgramElement()

SoGLShaderProgramElement::~SoGLShaderProgramElement ( )
overrideprotected

Destructor.

Member Function Documentation

◆ get()

static SoGLShaderProgram * SoGLShaderProgramElement::get ( SoState * state)
static

Returns the current shader from the state.

◆ init()

void SoGLShaderProgramElement::init ( SoState * state)
override

Initialize element.

◆ initClass()

static void SoGLShaderProgramElement::initClass ( )
static

Initialize class with runtime type system.

◆ pop()

void SoGLShaderProgramElement::pop ( SoState * state,
const SoElement * prevTopElement )
override

◆ push()

void SoGLShaderProgramElement::push ( SoState * state)
override

Override push()/pop() method so side effects can occur in GL.

◆ set()

static void SoGLShaderProgramElement::set ( SoState * state,
SoNode * node,
SoGLShaderProgram * glShaderProgram )
static

Sets the current shader in the state.

Member Data Documentation

◆ _glShaderProgram

SoGLShaderProgram* SoGLShaderProgramElement::_glShaderProgram
protected

Definition at line 54 of file SoGLShaderProgramElement.h.


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