Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoAlphaPolicy.h
1#pragma once
2
3#include <Inventor/nodes/SoNode.h>
4#include <Inventor/fields/SoSFEnum.h>
5#include <Inventor/fields/SoSFFloat.h>
6
27class SoAlphaPolicy : public SoNode
28{
29 SO_NODE_HEADER(SoAlphaPolicy);
30
31public:
32
36 enum Policy
37 {
42
47
52 };
53
58
64
69
70private:
71 virtual void GLRender(SoGLRenderAction *action);
72
73private:
74 static void initClass();
75 static void exitClass();
76
77private:
78 virtual ~SoAlphaPolicy();
79};
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Alpha (transpare...
Policy
Policy to use.
@ POLICY_DISCARD
All semi-transparent fragment (alpha < 1) are considered as fully transparent.
@ POLICY_AS_IS
Use the fragment's alpha value as is.
@ POLICY_OPAQUE
All semi-transparent fragment (alpha > 0) are considered as opaque.
SoSFEnum policy
Policy used Please refer to enum Policy.
SoAlphaPolicy()
Default Constructor.
static Policy getDefaultPolicy()
Get default alpha policy.
Renders a scene graph using Open Inventor's Render Engine.
Abstract base class for all database nodes.
Definition SoNode.h:145
Field containing an enumerated value.
Definition SoSFEnum.h:89