Defines an OpenGL graphics configuration. More...
#include <Inventor/components/SoGLGraphicConfig.h>
Public Member Functions | |
virtual SbBool | isDoubleBuffer () const =0 |
Returns TRUE if double-buffer mode is enabled, else FALSE (single-buffer mode). | |
virtual SbBool | isStereoBuffer () const =0 |
Returns TRUE if stereo buffer mode is supported. | |
virtual SbBool | isAccelerated () const =0 |
Returns TRUE if the OpenGL graphics configuration is accelerated. | |
virtual void | getDepth (int &bits) const =0 |
Returns the Z-buffer depth. | |
virtual void | getRGBAColor (int &redBits, int &greenBits, int &blueBits, int &alphaBits) const =0 |
Returns the color depth (red, green, blue, and alpha). | |
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 void | getAccum (int &redBits, int &greenBits, int &blueBits, int &alphaBits) const =0 |
Returns the accumulation buffer depth (red, green, blue, and alpha). | |
virtual void | getStencil (int &bits) const =0 |
Returns the stencil buffer depth. | |
virtual SbBool | getFullSceneAntialiasing (int &bits) const =0 |
Defines an OpenGL graphics configuration.
This class is an abstraction of an OpenGL graphics configuration (analogous to a pixel format on Microsoft Windows or a visual on X). It provides methods to inquire what the OpenGL graphics configuration supports: double/single buffer, raw stereo, OpenGL acceleration, Z-buffer depth size, RGBA/indexed colors and size, accumulation buffer and size, stencil buffer and size, etc.
SoGraphicConfigTemplate, SoGLGraphicConfigTemplate, SoGraphicConfig, SoGraphicDevice, SoGLGraphicDevice.
Definition at line 49 of file SoGLGraphicConfig.h.
|
pure virtual |
Returns the accumulation buffer depth (red, green, blue, and alpha).
If (red/green/blue/alpha)Bits are equal to 0, then the OpenGL graphics configuration has no accumulation buffer.
Implemented in SoWinGLGraphicConfig, and SoXtGLGraphicConfig.
|
pure virtual |
Returns the Z-buffer depth.
If 0 is returned, then there is no Z-buffer.
Implemented in SoWinGLGraphicConfig, and SoXtGLGraphicConfig.
|
pure virtual |
Returns the floating point color depth (red, green, blue, and alpha).
If (red/green/blue/alpha)Bits are equal to 0, then the OpenGL graphics configuration does not support floating point RGBA mode.
Implemented in SoWinGLGraphicConfig, and SoXtGLGraphicConfig.
|
pure virtual |
Implemented in SoWinGLGraphicConfig, and SoXtGLGraphicConfig.
|
pure virtual |
Returns the color depth (red, green, blue, and alpha).
If (red/green/blue/alpha)Bits are equal to 0, then the OpenGL graphics configuration does not support RGBA mode.
Implemented in SoWinGLGraphicConfig, and SoXtGLGraphicConfig.
|
pure virtual |
Returns the stencil buffer depth.
If 0 is returned, then the OpenGL graphics configuration has no stencil buffer.
Implemented in SoWinGLGraphicConfig, and SoXtGLGraphicConfig.
|
pure virtual |
Returns TRUE if the OpenGL graphics configuration is accelerated.
Implemented in SoWinGLGraphicConfig, and SoXtGLGraphicConfig.
|
pure virtual |
Returns TRUE if double-buffer mode is enabled, else FALSE (single-buffer mode).
Implemented in SoWinGLGraphicConfig, and SoXtGLGraphicConfig.
|
pure virtual |
Returns TRUE if stereo buffer mode is supported.
Implemented in SoWinGLGraphicConfig, and SoXtGLGraphicConfig.