Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoGLGraphicConfig Class Referenceabstract

VSG extension Defines an OpenGL graphics configuration. More...

#include <Inventor/components/SoGLGraphicConfig.h>

+ Inheritance diagram for SoGLGraphicConfig:

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
 

Detailed Description

VSG extension 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.

SEE ALSO

SoGraphicConfigTemplate, SoGLGraphicConfigTemplate, SoGraphicConfig, SoGraphicDevice, SoGLGraphicDevice.

Definition at line 49 of file SoGLGraphicConfig.h.

Member Function Documentation

◆ getAccum()

virtual void SoGLGraphicConfig::getAccum ( int &  redBits,
int &  greenBits,
int &  blueBits,
int &  alphaBits 
) const
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.

◆ getDepth()

virtual void SoGLGraphicConfig::getDepth ( int &  bits) const
pure virtual

Returns the Z-buffer depth.

If 0 is returned, then there is no Z-buffer.

Implemented in SoWinGLGraphicConfig, and SoXtGLGraphicConfig.

◆ getFloatRGBAColor()

virtual void SoGLGraphicConfig::getFloatRGBAColor ( int &  redBits,
int &  greenBits,
int &  blueBits,
int &  alphaBits 
) const
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.

◆ getFullSceneAntialiasing()

virtual SbBool SoGLGraphicConfig::getFullSceneAntialiasing ( int &  bits) const
pure virtual

◆ getRGBAColor()

virtual void SoGLGraphicConfig::getRGBAColor ( int &  redBits,
int &  greenBits,
int &  blueBits,
int &  alphaBits 
) const
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.

◆ getStencil()

virtual void SoGLGraphicConfig::getStencil ( int &  bits) const
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.

◆ isAccelerated()

virtual SbBool SoGLGraphicConfig::isAccelerated ( ) const
pure virtual

Returns TRUE if the OpenGL graphics configuration is accelerated.

Implemented in SoWinGLGraphicConfig, and SoXtGLGraphicConfig.

◆ isDoubleBuffer()

virtual SbBool SoGLGraphicConfig::isDoubleBuffer ( ) const
pure virtual

Returns TRUE if double-buffer mode is enabled, else FALSE (single-buffer mode).

Implemented in SoWinGLGraphicConfig, and SoXtGLGraphicConfig.

◆ isStereoBuffer()

virtual SbBool SoGLGraphicConfig::isStereoBuffer ( ) const
pure virtual

Returns TRUE if stereo buffer mode is supported.

Implemented in SoWinGLGraphicConfig, and SoXtGLGraphicConfig.


The documentation for this class was generated from the following file: