MeVisLab Toolbox Reference
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
24{
25 typedef SoReplacedElement inherited;
26
27 SO_ELEMENT_HEADER(SoGLShaderProgramAllowedElement);
28
29public:
31 void init(SoState* state) override;
32
34 static void set(SoState* state, SoNode* node, bool allowShaders);
36 static bool get(SoState* state);
37
39
41 static void initClass();
42
43protected:
46
48};
49
50#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.