Open Inventor Release 2024.1.1
 
Loading...
Searching...
No Matches
SoMacGLGraphicConfig.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_MAC_GL_GRAPHIC_CONFIG_H_
25#define _SO_MAC_GL_GRAPHIC_CONFIG_H_
26
27#ifdef __APPLE__
28
29#include <Inventor/components/SoGLGraphicConfig.h>
30#include <Inventor/components/SoGLGraphicDevice.h>
31
32class SoGLGraphicDevicePeer;
33
34//#ifndef _WIN32
35//# define PIXELFORMATDESCRIPTOR void *
36//#endif
37
54class SoMacGLGraphicConfig : public SoGLGraphicConfig {
55
56 public:
57
62 SbBool isDoubleBuffer() const;
63
67 SbBool isStereoBuffer() const;
68
72 SbBool isAccelerated() const;
73
78 void getDepth(int &bits) const;
79
85 void getRGBAColor(int &redBits,
86 int &greenBits,
87 int &blueBits,
88 int &alphaBits) const;
89
96 void getFloatRGBAColor(int &redBits,
97 int &greenBits,
98 int &blueBits,
99 int &alphaBits) const;
100
106 void getAccum(int &redBits,
107 int &greenBits,
108 int &blueBits,
109 int &alphaBits) const;
110
115 void getStencil(int &bits) const;
116
121 virtual SbBool getFullSceneAntialiasing(int &bits) const;
122
126 SbGlContextHelper::VisualInfo getPixelFormat() const;
127
128 private:
129
130 static SoGLGraphicConfig *getConfig(SoGLGraphicDevicePeer *device,
132
133 virtual SbBool isValid() const;
134
135 SoINTERNAL private:
136
137 SoMacGLGraphicConfig(SoGLGraphicDevicePeer *device, SbGlContextHelper::VisualInfo pixelFormat = NULL);
138 SoMacGLGraphicConfig(SoMacGLGraphicConfig &config);
139
140 private:
141
142 SbBool buildDescription();
143
144 SoGLGraphicDevicePeer *m_device;
145 SbGlContextHelper::VisualInfo m_pixelFormat;
146 SbBool m_isValid;
147
148 SbBool m_supportMultiSample;
149 int m_numSamples;
150};
151
152#endif
153
154#endif /* _SO_MAC_GL_GRAPHIC_CONFIG_H_ */
155
<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).
int SbBool
Boolean type.
Definition SbBase.h:87