glbinding  3.3.0.0
A C++ binding for the OpenGL API, generated using the gl.xml specification.
Loading...
Searching...
No Matches
glbinding::aux::ValidVersions Class Reference

#include <glbinding-aux/ValidVersions.h>

Static Public Member Functions

static bool isValid (const Version &version)
 Check for validity of this Version, based on the list of all valid features.
 
static const Versionnearest (const Version &version)
 Returns the nearest valid Version to this Version.
 
static const std::set< Version > & versions ()
 Accessor for the list of all valid Versions (OpenGL features)
 
static std::set< Versionpreceeding (const Version &version)
 Returns the list of all valid, previous Versions (Features) known by the gl.xml.
 
static std::set< Versionsucceeding (const Version &version)
 Returns the list of all valid, subsequent Versions (Features) known by the gl.xml.
 
static const Versionlatest ()
 Return the most current valid Version.
 

Static Protected Attributes

static const std::set< Versions_validVersions
 The set of all valid versions.
 
static const Version s_latest
 The most current version.
 

Member Function Documentation

◆ isValid()

static bool glbinding::aux::ValidVersions::isValid ( const Version version)
static

Check for validity of this Version, based on the list of all valid features.

Returns
true iff the version is valid (i.e., if this version is present in the set of valid versions)

◆ nearest()

static const Version & glbinding::aux::ValidVersions::nearest ( const Version version)
static

Returns the nearest valid Version to this Version.

Returns
The nearest valid Version that is either equal or lower than this Version

◆ versions()

static const std::set< Version > & glbinding::aux::ValidVersions::versions ( )
static

Accessor for the list of all valid Versions (OpenGL features)

Returns
The set of all valid Versions (= released OpenGL Features)

◆ preceeding()

static std::set< Version > glbinding::aux::ValidVersions::preceeding ( const Version version)
static

Returns the list of all valid, previous Versions (Features) known by the gl.xml.

Returns
The list of all valid Versions (Features) with a version number below the provided one

◆ succeeding()

static std::set< Version > glbinding::aux::ValidVersions::succeeding ( const Version version)
static

Returns the list of all valid, subsequent Versions (Features) known by the gl.xml.

Returns
The list of all valid Versions (Features) with a version number above the provided one

◆ latest()

static const Version & glbinding::aux::ValidVersions::latest ( )
static

Return the most current valid Version.

Returns
The most current Version from the set of all valid versions

Member Data Documentation

◆ s_validVersions

const std::set<Version> glbinding::aux::ValidVersions::s_validVersions
staticprotected

The set of all valid versions.

◆ s_latest

const Version glbinding::aux::ValidVersions::s_latest
staticprotected

The most current version.


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