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>.
Loading...
Searching...
No Matches
QRhiGles2NativeHandles Class Reference

\variable QRhiGles2InitParams::format More...

+ Collaboration diagram for QRhiGles2NativeHandles:

Detailed Description

\variable QRhiGles2InitParams::format

The QSurfaceFormat, initialized to QSurfaceFormat::defaultFormat() by default.

\variable QRhiGles2InitParams::fallbackSurface

A QSurface compatible with \l format. Typically a QOffscreenSurface. Providing this is mandatory. Be aware of the threading implications: a QOffscreenSurface, like QWindow, must only ever be created and destroyed on the main (gui) thread, even if the QRhi is created and operates on another thread.

\variable QRhiGles2InitParams::window

Optional, but setting it is recommended when targeting a QWindow with the QRhi.

\variable QRhiGles2InitParams::shareContext

Optional, the QOpenGLContext to share resource with. QRhi creates its own context, and setting this member to a valid QOpenGLContext leads to calling \l{QOpenGLContext::setShareContext()}{setShareContext()} with it.

\inmodule QtGui

Since
6.6

Holds the OpenGL context used by the QRhi.

Note
This is a RHI API with limited compatibility guarantees, see \l QRhi for details.

The documentation for this class was generated from the following file: