Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
\inmodule QtOpenGL More...
#include <qopenglversionfunctionsfactory.h>
Static Public Member Functions | |
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 context. | |
template<class TYPE > | |
static TYPE * | get (QOpenGLContext *context=nullptr) |
\inmodule QtOpenGL
Provides access to OpenGL functions for a specified version and profile.
Definition at line 25 of file qopenglversionfunctionsfactory.h.
|
static |
Returns a pointer to an object that provides access to all functions for the versionProfile of the context.
There is no need to call QAbstractOpenGLFunctions::initializeOpenGLFunctions() as long as the context is current. It is also possible to call this function when the context is not current, but in that case it is the caller's responsibility to ensure proper initialization by calling QAbstractOpenGLFunctions::initializeOpenGLFunctions() afterwards.
Usually one would use the template version of this function to automatically have the result cast to the correct type.
Definition at line 197 of file qopenglversionfunctionsfactory.cpp.
References QSet< T >::constEnd(), QSet< T >::constFind(), context, QSurfaceFormat::CoreProfile, createFunctions(), QOpenGLContext::currentContext(), QOpenGLContextVersionData::forContext(), funcs, QOpenGLVersionProfile::hasProfiles(), QOpenGLVersionProfile::isLegacyVersion(), QOpenGLVersionProfile::isValid(), it, QOpenGLVersionProfile::profile(), qMakePair(), qWarning, and QOpenGLVersionProfile::version().
|
inlinestatic |
Definition at line 30 of file qopenglversionfunctionsfactory.h.
References context, get(), and TYPE.