glbinding  2.1.1.000000000000
A C++ binding for the OpenGL API, generated using the gl.xml specification.
ContextInfo.h
Go to the documentation of this file.
1
2#pragma once
3
4#include <set>
5#include <string>
6
7#include <glbinding/glbinding_api.h>
8
9
10namespace gl
11{
12 enum class GLextension : int;
13}
14
15
16namespace glbinding
17{
18
19class AbstractFunction;
20class Version;
21
27class GLBINDING_API ContextInfo
28{
29public:
34 ContextInfo() = delete;
35
43 static std::set<gl::GLextension> extensions();
44
58 static std::set<gl::GLextension> extensions(std::set<std::string> * unknown);
59
70 static std::set<gl::GLextension> extensions(std::set<std::string> & unknown);
71
79 static std::string renderer();
80
88 static std::string vendor();
89
97 static Version version();
98
109 static bool supported(const std::set<gl::GLextension> & extensions);
110
124 static bool supported(
125 const std::set<gl::GLextension> & extensions
126 , std::set<gl::GLextension> & unsupported);
127
140 static bool supported(const Version & version, bool resolve = false);
141
158 static bool supported(const Version & version
159 , std::set<gl::GLextension> & unsupportedExtensions
160 , std::set<AbstractFunction *> & unsupportedFunctions
161 , bool resolve = false);
162
163};
164
165
166} // namespace glbinding
The ContextInfo class allows for access to metainformation about a context. The information is only v...
Definition: ContextInfo.h:28
ContextInfo()=delete
Deleted Constructor; this class is intended to be used without instantiation.
static Version version()
Queries the OpenGL feature number.
static std::set< gl::GLextension > extensions(std::set< std::string > *unknown)
Gathers information about the available extensions in the current context.
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 vendor()
Queries the vendor string.
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 std::set< gl::GLextension > &extensions)
Queries if all given extensions are supported.
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::string renderer()
Queries the renderer string.
static bool supported(const Version &version, bool resolve=false)
Queries all missing extensions and unresolved functions for the given OpenGL feature.
The Version class represents an OpenGL feature, consisting of majow version and minor version,...
Definition: Version.h:31
Definition: ContextInfo.h:11
Contains all the classes of glbinding.