4#ifndef QOPENGLVERSIONPROFILE_H
5#define QOPENGLVERSIONPROFILE_H
7#include <QtOpenGL/qtopenglglobal.h>
9#include <QtGui/QSurfaceFormat>
11#include <QtCore/QPair>
12#include <QtCore/qhashfunctions.h>
30 void setVersion(
int majorVersion,
int minorVersion);
35 bool hasProfiles()
const;
36 bool isLegacyVersion()
const;
44 if (lhs.profile() != rhs.
profile())
46 return lhs.version() == rhs.
version();
57 return qHash(
static_cast<int>(
v.profile() * 1000)
58 +
v.version().first * 100 +
v.version().second * 10,
seed);
62#ifndef QT_NO_DEBUG_STREAM
QSurfaceFormat::OpenGLContextProfile profile() const
Returns the OpenGL profile.
friend bool operator==(const QOpenGLVersionProfile &lhs, const QOpenGLVersionProfile &rhs) noexcept
friend bool operator!=(const QOpenGLVersionProfile &lhs, const QOpenGLVersionProfile &rhs) noexcept
QPair< int, int > version() const
Returns a QPair<int,int> where the components represent the major and minor OpenGL version numbers re...
Combined button and popup list for selecting options.
std::pair< T1, T2 > QPair
GLsizei const GLfloat * v
[13]
GLint GLsizei GLsizei GLenum format
size_t qHash(const QOpenGLVersionProfile &v, size_t seed=0) noexcept
Q_OPENGL_EXPORT QDebug operator<<(QDebug debug, const QOpenGLVersionProfile &vp)
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)