glbinding  3.3.0.0
A C++ binding for the OpenGL API, generated using the gl.xml specification.
Loading...
Searching...
No Matches
Version.h
Go to the documentation of this file.
1
2#pragma once
3
4
5#include <string>
6#include <set>
7#include <utility>
8
9#include <glbinding/glbinding_api.h>
10#include <glbinding/glbinding_features.h>
11
12
13namespace glbinding
14{
15
16
33class GLBINDING_TEMPLATE_API Version
34{
35public:
40 GLBINDING_CONSTEXPR inline Version();
41
51 GLBINDING_CONSTEXPR inline Version(unsigned char majorVersion, unsigned char minorVersion);
52
60 GLBINDING_CONSTEXPR inline Version(const Version & version);
61
69 inline Version(Version && version);
70
78 GLBINDING_CONSTEXPR inline unsigned char majorVersion() const;
79
87 GLBINDING_CONSTEXPR inline unsigned char minorVersion() const;
88
93 inline operator std::pair<unsigned char, unsigned char>() const;
94
99 inline operator std::pair<unsigned short, unsigned short>() const;
100
105 inline operator std::pair<unsigned int, unsigned int>() const;
106
114 inline std::string toString() const;
115
126 GLBINDING_CONSTEXPR inline bool isNull() const;
127
138 inline Version & operator=(const Version & version);
139
150 inline Version & operator=(Version && version);
151
162 GLBINDING_CONSTEXPR inline bool operator<(const Version & version) const;
163
174 GLBINDING_CONSTEXPR inline bool operator>(const Version & version) const;
175
186 GLBINDING_CONSTEXPR inline bool operator==(const Version & version) const;
187
198 GLBINDING_CONSTEXPR inline bool operator!=(const Version & version) const;
199
210 GLBINDING_CONSTEXPR inline bool operator>=(const Version & version) const;
211
222 GLBINDING_CONSTEXPR inline bool operator<=(const Version & version) const;
223
224
225protected:
226 unsigned char m_major;
227 unsigned char m_minor;
228};
229
230
231} // namespace glbinding
232
233
234#include <glbinding/Version.inl>
The Version class represents an OpenGL feature, consisting of major version and minor version,...
Definition Version.h:34
unsigned char m_minor
The minor version.
Definition Version.h:227
unsigned char m_major
The major version.
Definition Version.h:226
Contains all the classes of glbinding.