MeVisLab Toolbox Reference
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
24{
25 typedef SoReplacedElement inherited;
26
27 SO_ELEMENT_HEADER(SoGLShaderProgramAllowedElement);
28
29 public:
30
32 void init(SoState *state) override;
33
35 static void set(SoState *state, SoNode *node, bool allowShaders);
37 static bool get(SoState *state);
38
39 SoINTERNAL public:
40
42 static void initClass();
43
44 protected:
45
48
50};
51
52#endif
Internal Open Inventor element not meant to be used in SDK.
void init(SoState *state) override
Initialize element.
static void set(SoState *state, SoNode *node, bool allowShaders)
Sets the current framebuffer sampler in the state.
~SoGLShaderProgramAllowedElement() override
Destructor.
static void initClass()
Initialize class with runtime type system.
static bool get(SoState *state)
Returns if activating shaders is allowed.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.