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 
10 namespace gl
11 {
12  enum class GLextension : int;
13 }
14 
15 
16 namespace glbinding
17 {
18 
19 class AbstractFunction;
20 class Version;
21 
27 class GLBINDING_API ContextInfo
28 {
29 public:
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:27
Definition: ContextInfo.h:10
Contains all the classes of glbinding.
The Version class represents an OpenGL feature, consisting of majow version and minor version,...
Definition: Version.h:30