MeVisLabToolboxReference
|
00001 // **InsertLicense** code 00002 00006 00007 #ifndef _SO_GL_SHADER_PROGRAM_ALLOWED_ELEMENT_ 00008 #define _SO_GL_SHADER_PROGRAM_ALLOWED_ELEMENT_ 00009 00010 #include "SoShaderSystem.h" 00011 #include <Inventor/elements/SoReplacedElement.h> 00012 00014 class INVENTOR_SHADER_API SoGLShaderProgramAllowedElement : public SoReplacedElement 00015 { 00016 typedef SoReplacedElement inherited; 00017 00018 SO_ELEMENT_HEADER(SoGLShaderProgramAllowedElement); 00019 00020 public: 00021 00023 virtual void init(SoState *state); 00024 00026 static void set(SoState *state, SoNode *node, bool allowShaders); 00028 static bool get(SoState *state); 00029 00030 SoINTERNAL public: 00031 00033 static void initClass(); 00034 00035 protected: 00036 00038 virtual ~SoGLShaderProgramAllowedElement(); 00039 00040 bool _allowShaders; 00041 }; 00042 00043 #endif