Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
SoGLGraphicConfig.h
Go to the documentation of this file.
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2017 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23#ifndef _SO_GL_GRAPHIC_CONFIG_H_
24#define _SO_GL_GRAPHIC_CONFIG_H_
25
27
29
50
51 public:
52
57 virtual SbBool isDoubleBuffer() const = 0;
58
62 virtual SbBool isStereoBuffer() const = 0;
63
67 virtual SbBool isAccelerated() const = 0;
68
73 virtual void getDepth(int &bits) const = 0;
74
80 virtual void getRGBAColor(int &redBits,
81 int &greenBits,
82 int &blueBits,
83 int &alphaBits) const = 0;
84
91 virtual void getFloatRGBAColor(int &redBits,
92 int &greenBits,
93 int &blueBits,
94 int &alphaBits) const = 0;
95
101 virtual void getAccum(int &redBits,
102 int &greenBits,
103 int &blueBits,
104 int &alphaBits) const = 0;
105
110 virtual void getStencil(int &bits) const = 0;
111
115 virtual SbBool getFullSceneAntialiasing(int &bits) const = 0;
116
117 private:
118
119 virtual ~SoGLGraphicConfig() {}
120
121 virtual SbBool isValid() const
122 { return FALSE; }
123
125 virtual void print(FILE *fp) const;
126
127 const SoGLFormat& getGLFormat() const;
128
129private:
130
131 void setGLFormat( const SoGLFormat& format );
132
133private:
134 SoGLFormat m_format;
135};
136
137
138//----------------------------------------------------------------------
139inline const SoGLFormat&
140SoGLGraphicConfig::getGLFormat() const
141{
142 return m_format;
143}
144
145
146//----------------------------------------------------------------------
147inline void
148SoGLGraphicConfig::setGLFormat( const SoGLFormat& format )
149{
150 m_format = format;
151}
152
153
154//----------------------------------------------------------------------
155
156#endif /* _SO_GL_GRAPHIC_CONFIG_H_ */
157
158
#define FALSE
Possible value of SbBool.
Definition SbBase.h:75
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> OpenGL pixel for...
Definition SoGLFormat.h:55
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Defines an OpenG...
virtual SbBool isAccelerated() const =0
Returns TRUE if the OpenGL graphics configuration is accelerated.
virtual void getStencil(int &bits) const =0
Returns the stencil buffer depth.
virtual SbBool isStereoBuffer() const =0
Returns TRUE if stereo buffer mode is supported.
virtual SbBool getFullSceneAntialiasing(int &bits) const =0
virtual void getDepth(int &bits) const =0
Returns the Z-buffer depth.
virtual void getFloatRGBAColor(int &redBits, int &greenBits, int &blueBits, int &alphaBits) const =0
Returns the floating point color depth (red, green, blue, and alpha).
virtual SbBool isDoubleBuffer() const =0
Returns TRUE if double-buffer mode is enabled, else FALSE (single-buffer mode).
virtual void getAccum(int &redBits, int &greenBits, int &blueBits, int &alphaBits) const =0
Returns the accumulation buffer depth (red, green, blue, and alpha).
virtual void getRGBAColor(int &redBits, int &greenBits, int &blueBits, int &alphaBits) const =0
Returns the color depth (red, green, blue, and alpha).
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
int SbBool
Boolean type.
Definition SbBase.h:87