The scene viewport that renders on the GUI thread, kept as the fallback viewport. More...
| Header: | #include <SceneWidget> |
| Inherits: | QRhiWidget and IViewportSurface |
SceneWidget is a QRhiWidget that renders the construct scene inline: its layers, post effects and gizmos run on the GUI thread. It also holds the viewport interaction state, which is the camera control, the click resolution and the hover target.
ConstructShell places one in its form. When the worker viewport, construct::rendering::SceneWorkerWidget, is live, this widget stays alive and does not render. It renders when the worker device cannot, for example on a GLES context without float render targets or storage buffers.
See also construct::rendering::SceneWorkerWidget and ConstructShell.