QEGLContext Struct

struct QNativeInterface::QEGLContext

Native interface to an EGL context. More...

Header: #include <QEGLContext>
CMake: find_package(Qt6 COMPONENT Gui)
target_link_libraries(mytarget PUBLIC Qt::Gui)
qmake: QT += gui
Since: Qt 6.0

Public Functions

virtual EGLContext nativeContext() const = 0

Static Public Members

QOpenGLContext *fromNative(EGLContext context, EGLDisplay display, QOpenGLContext *shareContext = nullptr)

Detailed Description

Accessed through QOpenGLContext::nativeInterface().

Member Function Documentation

[static] QOpenGLContext *QEGLContext::fromNative(EGLContext context, EGLDisplay display, QOpenGLContext *shareContext = nullptr)

Adopts an EGLContext.

The same EGLDisplay passed to eglCreateContext must be passed as the display argument.

Ownership of the created QOpenGLContext is transferred to the caller.

[pure virtual] EGLContext QEGLContext::nativeContext() const

Returns the underlying EGLContext.