6#include <QtCore/QDebug>
161#ifndef QT_NO_DEBUG_STREAM
166 debug <<
"QOpenGLVersionProfile(";
169 <<
", profile=" << vp.
profile();
QOpenGLVersionProfilePrivate()
QSurfaceFormat::OpenGLContextProfile profile
void setProfile(QSurfaceFormat::OpenGLContextProfile profile)
Sets the OpenGL profile profile.
~QOpenGLVersionProfile()
Destroys the QOpenGLVersionProfile object.
void setVersion(int majorVersion, int minorVersion)
Sets the major and minor version numbers to majorVersion and minorVersion respectively.
QSurfaceFormat::OpenGLContextProfile profile() const
Returns the OpenGL profile.
bool isValid() const
Returns true if the version number is valid.
QOpenGLVersionProfile()
Creates a default invalid QOpenGLVersionProfile object.
bool isLegacyVersion() const
Returns true is the OpenGL version returned by version() contains deprecated functions and does not s...
QOpenGLVersionProfile & operator=(const QOpenGLVersionProfile &rhs)
Assigns the version and profile of rhs to this QOpenGLVersionProfile object.
bool hasProfiles() const
Returns true if profiles are supported by the OpenGL version returned by version().
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
GLint GLsizei GLsizei GLenum format
QDebug operator<<(QDebug debug, const QOpenGLVersionProfile &vp)
constexpr decltype(auto) qMakePair(T1 &&value1, T2 &&value2) noexcept(noexcept(std::make_pair(std::forward< T1 >(value1), std::forward< T2 >(value2))))