Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoWinGLGraphicConfig.h
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
24#ifndef _SO_WIN_GL_GRAPHIC_CONFIG_H_
25#define _SO_WIN_GL_GRAPHIC_CONFIG_H_
26
27#include <Inventor/components/SoGLGraphicConfig.h>
28#include <Inventor/components/SoGLGraphicDevice.h>
29class SoGLGraphicDevicePeer;
30#ifndef _WIN32
31# define PIXELFORMATDESCRIPTOR void *
32#endif
33
51
52 public:
53
58 virtual SbBool isDoubleBuffer() const;
59
63 virtual SbBool isStereoBuffer() const;
64
68 virtual SbBool isAccelerated() const;
69
77 virtual void getDepth(int &bits) const;
78
84 virtual void getRGBAColor(int &redBits,
85 int &greenBits,
86 int &blueBits,
87 int &alphaBits) const;
88
95 virtual void getFloatRGBAColor(int &redBits,
96 int &greenBits,
97 int &blueBits,
98 int &alphaBits) const;
99
105 virtual void getAccum(int &redBits,
106 int &greenBits,
107 int &blueBits,
108 int &alphaBits) const;
109
114 virtual void getStencil(int &bits) const;
115
120 virtual SbBool getFullSceneAntialiasing(int &bits) const;
121
125 virtual int getPixelFormat() const;
126
130 virtual const PIXELFORMATDESCRIPTOR *getPixelFormatDescriptor() const;
131
132 private:
133
134 static SoGLGraphicConfig *getConfig(SoGLGraphicDevicePeer *device,
135 int pixelFormat, SbBool forceComposition );
136
137 virtual SbBool isValid() const;
138
139 SoINTERNAL private:
140
141 SoWinGLGraphicConfig(SoGLGraphicDevicePeer *device, int pixelFormat = 0, SbBool forceComposition = FALSE);
143
144 private:
145
146 SbBool buildDescription();
147
148 SoGLGraphicDevicePeer *m_device;
149 int m_pixelFormat;
150 PIXELFORMATDESCRIPTOR m_pfd;
151 SbBool m_isValid;
152
153 SbBool m_compositionForced;
154
155 SbBool m_supportMultiSample;
156 int m_numSamples;
157};
158
159#endif /* _SO_WIN_GL_GRAPHIC_CONFIG_H_ */
160
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Defines an OpenG...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Represents an Op...
virtual void getDepth(int &bits) const
Returns the Z-buffer depth.
virtual void getRGBAColor(int &redBits, int &greenBits, int &blueBits, int &alphaBits) const
Returns the color depth (red, green, blue, and alpha).
virtual SbBool isDoubleBuffer() const
Returns TRUE if double buffer mode is enabled, else FALSE (single buffer mode).
virtual const PIXELFORMATDESCRIPTOR * getPixelFormatDescriptor() const
Returns the pixel format descriptor.
virtual void getAccum(int &redBits, int &greenBits, int &blueBits, int &alphaBits) const
Returns the accumulation buffer depth (red, green, blue, and alpha).
virtual void getFloatRGBAColor(int &redBits, int &greenBits, int &blueBits, int &alphaBits) const
Returns the floating point color depth (red, green, blue, and alpha).
virtual SbBool isStereoBuffer() const
Returns TRUE if stereo buffer mode is supported.
virtual void getStencil(int &bits) const
Returns the stencil buffer depth.
virtual int getPixelFormat() const
Returns the pixel format identifier.
virtual SbBool isAccelerated() const
Returns TRUE if the OpenGL graphics configuration is accelerated.
virtual SbBool getFullSceneAntialiasing(int &bits) const
Returns the availability of the hardware full-scene antialiasing feature.
int SbBool
Boolean type.
Definition SbBase.h:87