24#ifndef _SO_SHADER_PROGRAM_ELEMENT_
25#define _SO_SHADER_PROGRAM_ELEMENT_
27#include <Inventor/elements/SoReplacedElement.h>
28#include <Inventor/misc/SoRef.h>
29#include <Inventor/nodes/SoShaderProgram.h>
31class SoGLShaderProgram ;
78 virtual void commonInit();
81 virtual void init(
SoState *state);
85 static void initClass();
86 static void exitClass();
92 inline bool isEnabled()
const {
return m_enabled; }
95 inline bool isInternal()
const {
return m_internal; }
103 static bool hasTessellationShader(
SoState *state);
Abstract base class for all state elements.
Renders a scene graph using Open Inventor's Render Engine.
Abstract base class for all database nodes.
Smart pointer for any class inheriting SoRefCounter.
Abstract base class for each state element whose value is replaced whenever it is set.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Stores the curre...
static void set(SoState *state, SoNode *node)
Sets the current shader program in the state.
static void get(SoState *state, SoShaderProgram *&)
Gets the current shader program in the state.
virtual void push(SoState *)
Overrides push() method so side effects can occur in GL.
virtual void pop(SoState *state, const SoElement *prevTopElement)
Overrides pop() method so side effects can occur in GL.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Shader program p...