QEGLNativeContext Class

A class encapsulating an EGL context and display handle 更多...

头文件: #include <QEGLNativeContext>
开始支持版本: Qt 5.4

公有函数

QEGLNativeContext()
QEGLNativeContext(EGLContext ctx, EGLDisplay dpy)
EGLContext context() const
EGLDisplay display() const

详细描述

A class encapsulating an EGL context and display handle

Note: There is no binary compatibility guarantee for this class, meaning that an application using it is only guaranteed to work with the Qt version it was developed against.

Note: Due to being public while relying on otherwise hidden EGL types, this header itself does not include EGL/egl.h. It is the application's responsibility to include egl.h with any appropriate defines (for example, MESA_EGL_NO_X11_HEADERS or other vendor-specific defines controlling the typedefs for EGL's native resources) before this header.

参见 QOpenGLContext::setNativeHandle() and QOpenGLContext::nativeHandle().

成员函数

QEGLNativeContext::QEGLNativeContext()

Construct a new instance with no handles.

QEGLNativeContext::QEGLNativeContext(EGLContext ctx, EGLDisplay dpy)

Constructs a new instance with the provided ctx and dpy handles.

EGLContext QEGLNativeContext::context() const

Returns the EGL context.

EGLDisplay QEGLNativeContext::display() const

Returns the EGL display.