QOpenGLExtraFunctions Class
The QOpenGLExtraFunctions class provides cross-platform access to the OpenGL ES 3.0, 3.1 and 3.2 API. More...
Header: | #include <QOpenGLExtraFunctions> |
qmake: | QT += gui |
Since: | Qt 5.6 |
Inherits: | QOpenGLFunctions |
This class was introduced in Qt 5.6.
Public Functions
QOpenGLExtraFunctions(QOpenGLContext *context) | |
QOpenGLExtraFunctions() |
- 3 public functions inherited from QOpenGLFunctions
Detailed Description
This subclass of QOpenGLFunctions includes the OpenGL ES 3.0, 3.1 and 3.2 functions. These will only work when an OpenGL ES 3.x context, or an OpenGL context of a version containing the functions in question either in core or as extension, is in use. This allows developing GLES 3.x applications in a cross-platform manner: development can happen on a desktop platform with OpenGL 3.x or 4.x, deploying to a true GLES 3.x device later on will require no or minimal changes to the application.
Note: This class is different from the versioned OpenGL wrappers, for instance QOpenGLFunctions_3_2_Core. The versioned function wrappers target a given version and profile of OpenGL. They are therefore not suitable for cross-OpenGL-OpenGLES development.
Member Function Documentation
QOpenGLExtraFunctions::QOpenGLExtraFunctions(QOpenGLContext *context)
Constructs a function resolver for context. If context is nullptr
, then the resolver will be created for the current QOpenGLContext.
The context or another context in the group must be current.
An object constructed in this way can only be used with context and other contexts that share with it. Use initializeOpenGLFunctions() to change the object's context association.
QOpenGLExtraFunctions::QOpenGLExtraFunctions()
Constructs a default function resolver. The resolver cannot be used until initializeOpenGLFunctions() is called to specify the context.