The Version class represents an OpenGL feature, consisting of major version and minor version, excluding the profile information.
More...
#include <glbinding/Version.h>
The Version class represents an OpenGL feature, consisting of major version and minor version, excluding the profile information.
This instance can represent both any officially released OpenGL feature and other combinations of major and minor version, and provides methods for validity checking and comparison
Example code:
{
}
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
static Version version()
Queries the OpenGL feature number.
◆ Version() [1/4]
Default constructor, resulting in an invalid Version object.
◆ Version() [2/4]
Constructor for a Version object with the given major and minor version.
- Parameters
-
[in] | majorVersion | The major version |
[in] | minorVersion | The minor version |
◆ Version() [3/4]
Copy constructor.
- Parameters
-
[in] | version | The Version the data is used from |
◆ Version() [4/4]
glbinding::Version::Version |
( |
Version && |
version | ) |
|
|
inline |
Move constructor.
- Parameters
-
[in] | version | The Version the data is moved from |
◆ majorVersion()
Accessor for the major version.
- Returns
- The major version
References m_major.
◆ minorVersion()
Accessor for the minor version.
- Returns
- The minor version
References m_minor.
◆ toString()
std::string glbinding::Version::toString |
( |
| ) |
const |
|
inline |
Create a string representing the Version using the scheme "<majorVersion>.<minorVersion>".
- Returns
- The version as string, "-.-" iff the Version is invalid
References isNull(), m_major, and m_minor.
◆ isNull()
Check if the Version was constructed using the default constructor.
- Returns
true
if the major version is 0, else false
References m_major.
Referenced by toString().
◆ operator=() [1/2]
The assignment operator of another Version.
- Parameters
-
[in] | version | The version the data is used from |
- Returns
- The reference to this Version
References m_major, and m_minor.
◆ operator=() [2/2]
The assignment operator of another Version that is moved from.
- Parameters
-
[in] | version | The version the data is moved from |
- Returns
- The reference to this Version
References m_major, and m_minor.
◆ operator<()
◆ operator>()
◆ operator==()
◆ operator!=()
◆ operator>=()
Operator for greater equal comparison to another Version.
- Parameters
-
[in] | version | The Version to compare to |
- Returns
true
if this Version is greater than or equal to the other Version, else false
◆ operator<=()
Operator for lesser equal comparison to another Version.
- Parameters
-
[in] | version | The Version to compare to |
- Returns
true
if this Version is lower than or equal to the other Version, else false
◆ m_major
◆ m_minor
The documentation for this class was generated from the following files: