glbinding  3.3.0.0
A C++ binding for the OpenGL API, generated using the gl.xml specification.
Loading...
Searching...
No Matches
ContextInfo.h
Go to the documentation of this file.
1
2#pragma once
3
4
5#include <set>
6#include <string>
7
8#include <glbinding/Version.h>
10
11#include <glbinding-aux/glbinding-aux_api.h>
12#include <glbinding-aux/glbinding-aux_features.h>
13
14
15namespace gl
16{
17 enum class GLextension : int;
18}
19
20
21namespace glbinding
22{
23
24
25namespace aux
26{
27
28
34class GLBINDING_AUX_API ContextInfo
35{
36public:
41 ContextInfo() = delete;
42
50 static std::set<gl::GLextension> extensions();
51
62 static std::set<gl::GLextension> extensions(std::set<std::string> & unknown);
63
71 static std::string renderer();
72
80 static std::string vendor();
81
89 static Version version();
90
101 static bool supported(const std::set<gl::GLextension> & extensions);
102
116 static bool supported(const std::set<gl::GLextension> & extensions , std::set<gl::GLextension> & unsupported);
117
130 static bool supported(const Version & version, bool resolve = false);
131
148 static bool supported(const Version & version
149 , std::set<gl::GLextension> & unsupportedExtensions
150 , std::set<AbstractFunction *> & unsupportedFunctions
151 , bool resolve = false);
152};
153
154
155} } // namespace glbinding::aux
The Version class represents an OpenGL feature, consisting of major version and minor version,...
Definition Version.h:34
The ContextInfo class allows for access to metainformation about a context. The information is only v...
Definition ContextInfo.h:35
static std::set< gl::GLextension > extensions()
Gathers information about the available extensions in the current context.
static std::string vendor()
Queries the vendor string.
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.
static std::set< gl::GLextension > extensions(std::set< std::string > &unknown)
Gathers information about the available extensions in the current context.
static bool supported(const std::set< gl::GLextension > &extensions)
Queries if all given extensions are supported.
static Version version()
Queries the OpenGL feature number.
static bool supported(const Version &version, bool resolve=false)
Queries all missing extensions and unresolved functions for the given OpenGL feature.
static std::string renderer()
Queries the renderer string.
static bool supported(const std::set< gl::GLextension > &extensions, std::set< gl::GLextension > &unsupported)
Queries if all given extensions are supported.
ContextInfo()=delete
Deleted Constructor; this class is intended to be used without instantiation.
Definition ContextInfo.h:16
Contains all the classes of glbinding.