QEGLPlatformContext Class

An EGL context implementation. \since 5.2 \internal \ingroup qpa. More...

Header: #include <QEGLPlatformContext>
Inherits: QPlatformOpenGLContext and QNativeInterface::QEGLContext

Public Types

flags Flags

Detailed Description

Implement QPlatformOpenGLContext using EGL. To use it in platform plugins a subclass must be created since eglSurfaceForPlatformSurface() has to be reimplemented. This function is used for mapping platform surfaces (windows) to EGL surfaces and is necessary since different platform plugins may have different ways of handling native windows (for example, a plugin may choose not to back every platform window by a real EGL surface). Other than that, no further customization is necessary.