17#if !QT_CONFIG(opengles2)
52#if !QT_CONFIG(opengles2)
53 const int major = versionProfile.
version().first;
54 const int minor = versionProfile.
version().second;
57 switch (versionProfile.
profile()) {
59 if (major == 4 && minor == 5)
61 else if (major == 4 && minor == 4)
63 else if (major == 4 && minor == 3)
65 else if (major == 4 && minor == 2)
67 else if (major == 4 && minor == 1)
69 else if (major == 4 && minor == 0)
71 else if (major == 3 && minor == 3)
73 else if (major == 3 && minor == 2)
78 if (major == 4 && minor == 5)
80 else if (major == 4 && minor == 4)
82 else if (major == 4 && minor == 3)
84 else if (major == 4 && minor == 2)
86 else if (major == 4 && minor == 1)
88 else if (major == 4 && minor == 0)
90 else if (major == 3 && minor == 3)
92 else if (major == 3 && minor == 2)
101 if (major == 3 && minor == 1)
103 else if (major == 3 && minor == 0)
105 else if (major == 2 && minor == 1)
107 else if (major == 2 && minor == 0)
109 else if (major == 1 && minor == 5)
111 else if (major == 1 && minor == 4)
113 else if (major == 1 && minor == 3)
115 else if (major == 1 && minor == 2)
117 else if (major == 1 && minor == 1)
119 else if (major == 1 && minor == 0)
203 qWarning(
"versionFunctions: No OpenGL context");
207#if !QT_CONFIG(opengles2)
209 qWarning(
"versionFunctions: Not supported on OpenGL ES");
248 funcs->initializeOpenGLFunctions();
static QOpenGLContextVersionData * forContext(QOpenGLContext *context)
static QOpenGLContext * currentContext()
Returns the last context which called makeCurrent in the current thread, or \nullptr,...
static QAbstractOpenGLFunctions * get(const QOpenGLVersionProfile &versionProfile=QOpenGLVersionProfile(), QOpenGLContext *context=nullptr)
Returns a pointer to an object that provides access to all functions for the versionProfile of the co...
QSurfaceFormat::OpenGLContextProfile profile() const
Returns the OpenGL profile.
bool isValid() const
Returns true if the version number is valid.
bool isLegacyVersion() const
Returns true is the OpenGL version returned by version() contains deprecated functions and does not s...
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...
const_iterator constEnd() const noexcept
const_iterator constFind(const T &value) const
static VulkanServerBufferGlFunctions * funcs
QSet< QString >::iterator it
Combined button and popup list for selecting options.
std::pair< T1, T2 > QPair
GLsizei const GLfloat * v
[13]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
static QT_BEGIN_NAMESPACE QAbstractOpenGLFunctions * createFunctions(const QOpenGLVersionProfile &versionProfile)
constexpr decltype(auto) qMakePair(T1 &&value1, T2 &&value2) noexcept(noexcept(std::make_pair(std::forward< T1 >(value1), std::forward< T2 >(value2))))