![]() |
Qt 6.x
The Qt SDK
|
\variable QRhiGles2InitParams::format More...
\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
Holds the OpenGL context used by the QRhi.