glbinding  3.3.0.0
A C++ binding for the OpenGL API, generated using the gl.xml specification.
Loading...
Searching...
No Matches
ValidVersions.h
Go to the documentation of this file.
1
2#pragma once
3
4
5#include <set>
6#include <utility>
7
8#include <glbinding/Version.h>
9
10#include <glbinding-aux/glbinding-aux_api.h>
11#include <glbinding-aux/glbinding-aux_features.h>
12
13
14namespace glbinding { namespace aux
15{
16
17
19{
20public:
28 static bool isValid(const Version & version);
29
37 static const Version & nearest(const Version & version);
38
46 static const std::set<Version> & versions();
47
55 static std::set<Version> preceeding(const Version & version);
56
64 static std::set<Version> succeeding(const Version & version);
65
73 static const Version & latest();
74
75
76protected:
77 static const std::set<Version> s_validVersions;
78 static const Version s_latest;
79};
80
81
82} } // namespace glbinding::aux
The Value class represents a printable wrapper around an OpenGL data type.
Definition Value.h:30
The Version class represents an OpenGL feature, consisting of major version and minor version,...
Definition Version.h:34
Definition ValidVersions.h:19
static const Version s_latest
The most current version.
Definition ValidVersions.h:78
static const std::set< Version > & versions()
Accessor for the list of all valid Versions (OpenGL features)
static std::set< Version > preceeding(const Version &version)
Returns the list of all valid, previous Versions (Features) known by the gl.xml.
static const Version & nearest(const Version &version)
Returns the nearest valid Version to this Version.
static std::set< Version > succeeding(const Version &version)
Returns the list of all valid, subsequent Versions (Features) known by the gl.xml.
static const std::set< Version > s_validVersions
The set of all valid versions.
Definition ValidVersions.h:77
static bool isValid(const Version &version)
Check for validity of this Version, based on the list of all valid features.
static const Version & latest()
Return the most current valid Version.
Contains all the classes of glbinding.