MeVisLab Resolution Independence API
Loading...
Searching...
No Matches
SoCheckShaderSupport.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2007, 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_CHECK_SHADER_SUPPORT_H
14#define SO_CHECK_SHADER_SUPPORT_H
15
16
18
19#include "SoShaderSystem.h"
20#include <Inventor/nodes/SoSubNode.h>
21#include <Inventor/fields/SoSFBool.h>
22
23class SoGLRenderAction;
24
27{
28 typedef SoNode inherited;
29
30 SO_NODE_HEADER(SoCheckShaderSupport);
31
32public:
34 SoSFBool shaderSupport;
35
38
39SoEXTENDER public :
40
42 void GLRender(SoGLRenderAction* action) override;
43
44SoINTERNAL public :
45
47 static void initClass();
48
49private:
50 SbBool _hasBeenChecked;
51};
52
53#endif // _SO_CHECK_SHADER_SUPPORT_
#define INVENTOR_SHADER_API
Define class export specifier.
static void initClass()
Initialize class with runtime type system.
SoCheckShaderSupport()
Constructor.
void GLRender(SoGLRenderAction *action) override
Do the check.
SoSFBool shaderSupport
Read-Only: 'True' if graphics hardware supports vertex and fragment shader, 'False' otherwise.