The ContextInfo class allows for access to metainformation about a context. The information is only valid for the currently active context.
More...
#include <glbinding-aux/ContextInfo.h>
|
| ContextInfo ()=delete |
| Deleted Constructor; this class is intended to be used without instantiation.
|
|
|
static std::set< gl::GLextension > | extensions () |
| Gathers information about the available extensions in the current context.
|
|
static std::set< gl::GLextension > | extensions (std::set< std::string > &unknown) |
| Gathers information about the available extensions in the current context.
|
|
static std::string | renderer () |
| Queries the renderer string.
|
|
static std::string | vendor () |
| Queries the vendor string.
|
|
static Version | version () |
| Queries the OpenGL feature number.
|
|
static bool | supported (const std::set< gl::GLextension > &extensions) |
| Queries if all given extensions are supported.
|
|
static bool | supported (const std::set< gl::GLextension > &extensions, std::set< gl::GLextension > &unsupported) |
| Queries if all given extensions are supported.
|
|
static bool | supported (const Version &version, bool resolve=false) |
| Queries all missing extensions and unresolved functions for the given OpenGL feature.
|
|
static bool | supported (const Version &version, std::set< gl::GLextension > &unsupportedExtensions, std::set< AbstractFunction * > &unsupportedFunctions, bool resolve=false) |
| Queries all missing extensions for the given OpenGL feature.
|
|
The ContextInfo class allows for access to metainformation about a context. The information is only valid for the currently active context.
◆ ContextInfo()
glbinding::aux::ContextInfo::ContextInfo |
( |
| ) |
|
|
delete |
Deleted Constructor; this class is intended to be used without instantiation.
◆ extensions() [1/2]
static std::set< gl::GLextension > glbinding::aux::ContextInfo::extensions |
( |
| ) |
|
|
static |
Gathers information about the available extensions in the current context.
- Returns
- The list of available extensions known by glbinding
◆ extensions() [2/2]
static std::set< gl::GLextension > glbinding::aux::ContextInfo::extensions |
( |
std::set< std::string > & | unknown | ) |
|
|
static |
Gathers information about the available extensions in the current context.
- Parameters
-
[out] | unknown | The list of extension names for available extensions not known by glbinding |
- Returns
- The list of available extensions known by glbinding
◆ renderer()
static std::string glbinding::aux::ContextInfo::renderer |
( |
| ) |
|
|
static |
Queries the renderer string.
- Returns
- The renderer string
◆ vendor()
static std::string glbinding::aux::ContextInfo::vendor |
( |
| ) |
|
|
static |
Queries the vendor string.
- Returns
- The vendor string
◆ version()
static Version glbinding::aux::ContextInfo::version |
( |
| ) |
|
|
static |
Queries the OpenGL feature number.
- Returns
- The version encoding the OpenGL feature
◆ supported() [1/4]
static bool glbinding::aux::ContextInfo::supported |
( |
const std::set< gl::GLextension > & | extensions | ) |
|
|
static |
Queries if all given extensions are supported.
- Parameters
-
[in] | extensions | A set of extensions that are tested for availability in the current context |
- Returns
true
if all given extensions are supported by the current context, else false
◆ supported() [2/4]
static bool glbinding::aux::ContextInfo::supported |
( |
const std::set< gl::GLextension > & | extensions, |
|
|
std::set< gl::GLextension > & | unsupported ) |
|
static |
Queries if all given extensions are supported.
- Parameters
-
[in] | extensions | A set of extensions that are tested for availability in the current context |
[out] | unsupported | The subset of extensions (based on the given extensions) not supported by the current context |
- Returns
true
if all given extensions are supported by the current context, else false
◆ supported() [3/4]
static bool glbinding::aux::ContextInfo::supported |
( |
const Version & | version, |
|
|
bool | resolve = false ) |
|
static |
Queries all missing extensions and unresolved functions for the given OpenGL feature.
- Parameters
-
[in] | version | The version for which all functions and extensions are checked |
[in] | resolve | (optional) Specifies whether or not functions shall be explicitly resolved before querrying their status |
- Returns
true
if all extensions required for the given feature are supported, else false
◆ supported() [4/4]
static bool glbinding::aux::ContextInfo::supported |
( |
const Version & | version, |
|
|
std::set< gl::GLextension > & | unsupportedExtensions, |
|
|
std::set< AbstractFunction * > & | unsupportedFunctions, |
|
|
bool | resolve = false ) |
|
static |
Queries all missing extensions for the given OpenGL feature.
- Parameters
-
[in] | version | The version for which all functions and extensions are checked |
[out] | unsupportedExtensions | The set of extensions missing by the current context for full feature support |
[out] | unsupportedFunctions | The set of functions that could not be resolved in the current context |
[in] | resolve | (optional) Specifies whether or not functions shall be explicitly resolved before querrying their status |
- Returns
true
if all extensions required for the given feature are supported, else false
The documentation for this class was generated from the following file: