Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoGLGraphicConfigCompare.h File Reference

Go to the source code of this file.

Functions

virtual SbBool operator() (SoGraphicConfig *const &gc1, SoGraphicConfig *const &gc2) const
  VSG extension Defines an OpenGL graphics compare object used to compare two SoGLGraphicConfig objects according to an SoGLGraphicConfigTemplate object.
 

Function Documentation

◆ operator()()

virtual SbBool operator() ( SoGraphicConfig *const &  gc1,
SoGraphicConfig *const &  gc2 
) const
virtual

VSG extension Defines an OpenGL graphics compare object used to compare two SoGLGraphicConfig objects according to an SoGLGraphicConfigTemplate object.

This class allows the comparison of two graphic configurations. To sort the list of its supported graphic configurations, a graphics device needs a predicate object of type SoGraphicConfigCompare class or derived from this class. It takes the graphics template in parameter to define the right order. This order should be absolute (non ambiguous). SoGLGraphicDevice class uses SoGLGraphicConfigCompare to internally compare SoGLGraphicConfig objects by default.

SEE ALSO

SoGraphicConfigTemplate, SoGLGraphicConfigTemplate, SoGraphicConfigCompare, SoGLGraphicConfigCompare, SoGraphicConfig, SoGraphicDevice, SoGLGraphicDevice.