glbinding  2.1.1.96dbfd46d679
A C++ binding for the OpenGL API, generated using the gl.xml specification.

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>

Public Member Functions

 ContextInfo ()=delete
 Deleted Constructor; this class is intended to be used without instantiation. More...
 

Static Public Member Functions

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...
 

Detailed Description

The ContextInfo class allows for access to metainformation about a context. The information is only valid for the currently active context.

Constructor & Destructor Documentation

glbinding::ContextInfo::ContextInfo ( )
delete

Deleted Constructor; this class is intended to be used without instantiation.

Member Function Documentation

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]unknownThe 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]extensionsA 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]extensionsA set of extensions that are tested for availability in the current context.
[out]unknownThe 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]versionThe version for which all functions and extensions are checked.
[in]resolveSpecifies 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]versionThe version for which all functions and extensions are checked.
[out]unsupportedExtensionsThe set of extensions missing by the current context for full feature support.
[out]unsupportedFunctionsThe set of functions that could not be resolved in the current context.
[in]resolveSpecifies 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: