MeVisLab Resolution Independence API
Toggle main menu visibility
Loading...
Searching...
No Matches
SoGLShaderProgramAllowedElement.h
Go to the documentation of this file.
1
/*************************************************************************************
2
**
3
** Copyright 2011, MeVis Medical Solutions AG
4
**
5
** The user may use this file in accordance with the license agreement provided with
6
** the Software or, alternatively, in accordance with the terms contained in a
7
** written agreement between the user and MeVis Medical Solutions AG.
8
**
9
** For further information use the contact form at https://www.mevislab.de/contact
10
**
11
**************************************************************************************/
12
13
#ifndef SO_GLSHADER_PROGRAM_ALLOWED_ELEMENT_H
14
#define SO_GLSHADER_PROGRAM_ALLOWED_ELEMENT_H
15
16
18
19
#include "
SoShaderSystem.h
"
20
#include <Inventor/elements/SoReplacedElement.h>
21
23
class
INVENTOR_SHADER_API
SoGLShaderProgramAllowedElement
:
public
SoReplacedElement
24
{
25
typedef
SoReplacedElement inherited;
26
27
SO_ELEMENT_HEADER(
SoGLShaderProgramAllowedElement
);
28
29
public
:
31
void
init
(SoState* state)
override
;
32
34
static
void
set
(SoState* state, SoNode* node,
bool
allowShaders);
36
static
bool
get
(SoState* state);
37
38
SoINTERNAL public :
39
41
static
void
initClass
();
42
43
protected
:
45
~SoGLShaderProgramAllowedElement
()
override
;
46
47
bool
_allowShaders
;
48
};
49
50
#endif
SoShaderSystem.h
INVENTOR_SHADER_API
#define INVENTOR_SHADER_API
Define class export specifier.
Definition
SoShaderSystem.h:20
SoGLShaderProgramAllowedElement
Internal Open Inventor element not meant to be used in SDK.
Definition
SoGLShaderProgramAllowedElement.h:24
SoGLShaderProgramAllowedElement::init
void init(SoState *state) override
Initialize element.
SoGLShaderProgramAllowedElement::_allowShaders
bool _allowShaders
Definition
SoGLShaderProgramAllowedElement.h:47
SoGLShaderProgramAllowedElement::set
static void set(SoState *state, SoNode *node, bool allowShaders)
Sets the current framebuffer sampler in the state.
SoGLShaderProgramAllowedElement::~SoGLShaderProgramAllowedElement
~SoGLShaderProgramAllowedElement() override
Destructor.
SoGLShaderProgramAllowedElement::initClass
static void initClass()
Initialize class with runtime type system.
SoGLShaderProgramAllowedElement::get
static bool get(SoState *state)
Returns if activating shaders is allowed.
MeVisLab
Standard
Sources
Inventor
SoShader
Inventor
elements
SoGLShaderProgramAllowedElement.h
Generated by
1.18.0