MeVisLab Resolution Independence API
Loading...
Searching...
No Matches
SoGLRenderState.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_GLRENDER_STATE_H
14#define SO_GLRENDER_STATE_H
15
16
18
19#include "SoShaderSystem.h"
20#include <Inventor/nodes/SoSubNode.h>
21#include <Inventor/fields/SoSFBool.h>
22#include <Inventor/fields/SoSFEnum.h>
23#include <Inventor/fields/SoSFFloat.h>
24#include <Inventor/system/SbOpenGL.h>
25
28{
29 typedef SoNode inherited;
30
31 SO_NODE_HEADER(SoGLRenderState);
32
33public:
35 PUSH = 1,
36 POP = 2
37 };
38
39 enum CullMode {
40 NONE = 0,
41 FRONT = GL_FRONT,
42 BACK = GL_BACK,
43 FRONT_AND_BACK = GL_FRONT_AND_BACK,
44 };
46 NEVER = GL_NEVER,
47 LESS = GL_LESS,
48 EQUAL = GL_EQUAL,
49 LESS_EQUAL = GL_LEQUAL,
50 GREATER = GL_GREATER,
51 NOT_EQUAL = GL_NOTEQUAL,
52 GREATER_EQUAL = GL_GEQUAL,
53 ALWAYS = GL_ALWAYS
54 };
55 enum PolyMode {
56 POINTS = GL_POINT,
57 LINES = GL_LINE,
58 FILL = GL_FILL
59 };
60
67
69 SoSFEnum cullMode;
70 SoSFBool depthEnable;
71 SoSFEnum depthFunction;
73 SoSFEnum polyFrontMode;
74 SoSFEnum polyBackMode;
75 SoSFFloat lineWidth;
76 SoSFBool lineSmooth;
77 SoSFBool pointSprites;
78 SoSFBool blending;
79 SoSFEnum blendMode;
80
83
84SoEXTENDER public :
85
87 void GLRender(SoGLRenderAction* action) override;
88
89SoINTERNAL public :
90
92 static void initClass();
93};
94
95#endif // _SO_GL_RENDER_STATE_
#define INVENTOR_SHADER_API
Define class export specifier.
static void initClass()
Initialize class with runtime type system.
SoGLRenderState()
Constructor.
void GLRender(SoGLRenderAction *action) override
Add this node to element in state.
SoSFBool writeMaskDepth
SoSFEnum attribSaveMode