The ContextInfo class allows for access to metainformation about a context. The information is only valid for the currently active context.
More...
#include <glbinding/include/glbinding/ContextInfo.h>
|
| | ContextInfo ()=delete |
| | Deleted Constructor; this class is intended to be used without instantiation. More...
|
| |
|
| static std::set< gl::GLextension > | extensions () |
| | Gathers information about the available extensions in the current context. More...
|
| |
| static std::set< gl::GLextension > | extensions (std::set< std::string > *unknown) |
| | Gathers information about the available extensions in the current context. More...
|
| |
| static std::set< gl::GLextension > | extensions (std::set< std::string > &unknown) |
| | Gathers information about the available extensions in the current context. More...
|
| |
| static std::string | renderer () |
| | Queries the renderer string. More...
|
| |
| static std::string | vendor () |
| | Queries the vendor string. More...
|
| |
| static Version | version () |
| | Queries the OpenGL feature number. More...
|
| |
| static bool | supported (const std::set< gl::GLextension > &extensions) |
| | Queries if all given extensions are supported. More...
|
| |
| static bool | supported (const std::set< gl::GLextension > &extensions, std::set< gl::GLextension > &unsupported) |
| | Queries if all given extensions are supported. More...
|
| |
| static bool | supported (const Version &version, bool resolve=false) |
| | Queries all missing extensions and unresolved functions for the given OpenGL feature. More...
|
| |
| 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. More...
|
| |
The ContextInfo class allows for access to metainformation about a context. The information is only valid for the currently active context.
| glbinding::ContextInfo::ContextInfo |
( |
| ) |
|
|
delete |
Deleted Constructor; this class is intended to be used without instantiation.
| static std::set<gl::GLextension> glbinding::ContextInfo::extensions |
( |
| ) |
|
|
static |
Gathers information about the available extensions in the current context.
- Returns
- The list of available extensions known by glbinding.
| static std::set<gl::GLextension> glbinding::ContextInfo::extensions |
( |
std::set< std::string > * |
unknown | ) |
|
|
static |
Gathers information about the available extensions in the current context.
- Parameters
-
| [out] | unknown | (optional) The list of extension names for available extensions not known by glbinding. |
- Returns
- The list of available extensions known by glbinding.
- Deprecated:
- This method will be removed in future major releases.
| static std::set<gl::GLextension> glbinding::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.
| static std::string glbinding::ContextInfo::renderer |
( |
| ) |
|
|
static |
Queries the renderer string.
- Returns
- The renderer string.
| static std::string glbinding::ContextInfo::vendor |
( |
| ) |
|
|
static |
Queries the vendor string.
- Returns
- The vendor string.
| static Version glbinding::ContextInfo::version |
( |
| ) |
|
|
static |
Queries the OpenGL feature number.
- Returns
- The version encoding the OpenGL feature.
| static bool glbinding::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.
| static bool glbinding::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] | unknown | 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.
| static bool glbinding::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 | 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.
| static bool glbinding::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 | 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.
The documentation for this class was generated from the following file: