diff options
| author | Kristoffer Skau <kristoffer.skau@qt.io> | 2022-11-24 14:31:09 +0100 |
|---|---|---|
| committer | Kristoffer Skau <kristoffer.skau@qt.io> | 2022-12-01 13:42:07 +0100 |
| commit | c450f6d21c5153e05bd10afdd54767623cfbe7e8 (patch) | |
| tree | e7ce6d73cda2f0f83673cad8b528bb67463e9cdd /src/openglwidgets/qopenglwidget.h | |
| parent | 9bc74d14f379ad58d7a80d5514a3db5be5012de0 (diff) | |
Support stereoscopic rendering with QGraphicsView
This patch adds a manual test and the required work in graphicsview and
qwidget private apis to support stereoscopic rendeing. Basically it
works by doing the drawing in QGraphicsView::paintEvent twice, once for
each buffer. This way the scene items are rendered to both buffers.
There's also an update to resolvement in QOpenGLWidgetPrivate
so that multisampling works correctly.
[ChangeLog][Widgets][QGraphicsView] Added support for
stereoscopic rendering.
Task-number: QTBUG-64587
Change-Id: I20650682daa805b64fe7f0d2ba086917d3f12229
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/openglwidgets/qopenglwidget.h')
| -rw-r--r-- | src/openglwidgets/qopenglwidget.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/openglwidgets/qopenglwidget.h b/src/openglwidgets/qopenglwidget.h index 84097854e59..847e684cd98 100644 --- a/src/openglwidgets/qopenglwidget.h +++ b/src/openglwidgets/qopenglwidget.h @@ -45,6 +45,7 @@ public: bool isValid() const; void makeCurrent(); + void makeCurrent(TargetBuffer targetBuffer); void doneCurrent(); QOpenGLContext *context() const; |
