|
QGroundControl
Ground Control Station for MAVLink Drones
|
Resolves and caches the QRhi* driving QGC's main scene graph; Qt has no global RHI accessor.
More...
Classes | |
| struct | DeviceSnapshot |
Functions | |
| QRhi * | cachedRhi () noexcept |
| Cached QRhi* maintained by sceneGraph signals; safe from any thread via acquire ordering. | |
| DeviceSnapshot & | deviceSnapshot () noexcept |
| Returns the global snapshot. Atomic fields make individual reads thread-safe. | |
| void | connectWindow (QQuickWindow *window) |
Resolves and caches the QRhi* driving QGC's main scene graph; Qt has no global RHI accessor.
|
noexcept |
Cached QRhi* maintained by sceneGraph signals; safe from any thread via acquire ordering.
Definition at line 98 of file QGCRhiCapture.cc.
Referenced by GStreamer::onMainWindowReady().
| void QGCRhiCapture::connectWindow | ( | QQuickWindow * | window | ) |
Call once from the GUI thread once the main QQuickWindow exists; wires sceneGraph signals to maintain cachedRhi() and the device snapshot.
Definition at line 108 of file QGCRhiCapture.cc.
References HwBuffers::resetCachedGpuResources().
Referenced by HwBuffers::connectMainWindow().
|
noexcept |
Returns the global snapshot. Atomic fields make individual reads thread-safe.
Definition at line 103 of file QGCRhiCapture.cc.