Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoXtGLGraphicConfig Class Reference

VSG extension Represents an OpenGL graphics configuration for UNIX/Linux (Xt-based) systems. More...

#include <Inventor/components/SoXtGLGraphicConfig.h>

+ Inheritance diagram for SoXtGLGraphicConfig:

Public Member Functions

virtual SbBool isDoubleBuffer () const
 Returns TRUE if double buffer mode is enabled, else FALSE (single buffer mode).
 
virtual SbBool isStereoBuffer () const
 Returns TRUE if stereo buffer mode is supported.
 
virtual SbBool isAccelerated () const
 Returns TRUE if the OpenGL graphics configuration is accelerated.
 
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 void getFloatRGBAColor (int &redBits, int &greenBits, int &blueBits, int &alphaBits) const
 Returns the floating point color depth (red, green, blue, and alpha).
 
virtual void getAccum (int &redBits, int &greenBits, int &blueBits, int &alphaBits) const
 Returns the accumulation buffer depth (red, green, blue, and alpha).
 
virtual void getStencil (int &bits) const
 Returns the stencil buffer depth.
 
virtual SbBool getFullSceneAntialiasing (int &bits) const
 Returns the availability of the hardware full-scene antialiasing feature.
 
SbGlContextHelper::VisualInfo getXVisualInfo ()
 Returns the X visual information.
 
GLXFBConfig * getFBConfig ()
 Returns the Frame Buffer Configuration.
 

Detailed Description

VSG extension Represents an OpenGL graphics configuration for UNIX/Linux (Xt-based) systems.

This class is a representation of an XVisualInfo struct or a GLXFBConfig. Compared to its parent class, this class adds a method to query the system-dependent XVisualInfo or GLXFBConfig struct.

SEE ALSO

SoGraphicConfigTemplate, SoGLGraphicConfigTemplate, SoGraphicConfig, SoGraphicDevice, SoGLGraphicDevice.

Definition at line 50 of file SoXtGLGraphicConfig.h.

Member Function Documentation

◆ getAccum()

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

Implements SoGLGraphicConfig.

◆ getDepth()

virtual void SoXtGLGraphicConfig::getDepth ( int &  bits) const
virtual

Returns the Z-buffer depth.

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

Implements SoGLGraphicConfig.

◆ getFBConfig()

GLXFBConfig * SoXtGLGraphicConfig::getFBConfig ( )

Returns the Frame Buffer Configuration.

◆ getFloatRGBAColor()

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

Implements SoGLGraphicConfig.

◆ getFullSceneAntialiasing()

virtual SbBool SoXtGLGraphicConfig::getFullSceneAntialiasing ( int &  bits) const
virtual

Returns the availability of the hardware full-scene antialiasing feature.

Parameters
bitsreturns the number of samples used in the antialiasing algorithm.

Implements SoGLGraphicConfig.

◆ getRGBAColor()

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

Implements SoGLGraphicConfig.

◆ getStencil()

virtual void SoXtGLGraphicConfig::getStencil ( int &  bits) const
virtual

Returns the stencil buffer depth.

If 0 is returned, then the OpenGL graphics configuration has no stencil buffer.

Implements SoGLGraphicConfig.

◆ getXVisualInfo()

SbGlContextHelper::VisualInfo SoXtGLGraphicConfig::getXVisualInfo ( )

Returns the X visual information.

◆ isAccelerated()

virtual SbBool SoXtGLGraphicConfig::isAccelerated ( ) const
virtual

Returns TRUE if the OpenGL graphics configuration is accelerated.

Implements SoGLGraphicConfig.

◆ isDoubleBuffer()

virtual SbBool SoXtGLGraphicConfig::isDoubleBuffer ( ) const
virtual

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

Implements SoGLGraphicConfig.

◆ isStereoBuffer()

virtual SbBool SoXtGLGraphicConfig::isStereoBuffer ( ) const
virtual

Returns TRUE if stereo buffer mode is supported.

Implements SoGLGraphicConfig.


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