diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-06-26 15:49:06 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2024-01-15 21:25:12 +0100 |
commit | b5a05e4e7e97f8ef5c4cc65fee0cfcfd9e4c5cc4 (patch) | |
tree | 0e4a559eb4d2003964631e455228069315f668c6 /src/quick/scenegraph/coreapi/qsgabstractrenderer_p.h | |
parent | 2874c79cebdf6a0f0322b7217d20772060e065d9 (diff) |
scenegraph: Add plumbing for enabling multiview
This will be used in RenderMode3D only in practice, where Qt Quick 3D
is going to pass in multiple matrices to the QSGRenderer.
Task-number: QTBUG-114871
Change-Id: Icae7f05958729d9e51948e1f38621ec4a541192d
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/quick/scenegraph/coreapi/qsgabstractrenderer_p.h')
-rw-r--r-- | src/quick/scenegraph/coreapi/qsgabstractrenderer_p.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgabstractrenderer_p.h b/src/quick/scenegraph/coreapi/qsgabstractrenderer_p.h index 971e6dc023..c3b47282a1 100644 --- a/src/quick/scenegraph/coreapi/qsgabstractrenderer_p.h +++ b/src/quick/scenegraph/coreapi/qsgabstractrenderer_p.h @@ -54,10 +54,12 @@ public: void setProjectionMatrixToRect(const QRectF &rect, MatrixTransformFlags flags); void setProjectionMatrixToRect(const QRectF &rect, MatrixTransformFlags flags, bool nativeNDCFlipY); - void setProjectionMatrix(const QMatrix4x4 &matrix); - void setProjectionMatrixWithNativeNDC(const QMatrix4x4 &matrix); - QMatrix4x4 projectionMatrix() const; - QMatrix4x4 projectionMatrixWithNativeNDC() const; + void setProjectionMatrix(const QMatrix4x4 &matrix, int index); + void setProjectionMatrixWithNativeNDC(const QMatrix4x4 &matrix, int index); + QMatrix4x4 projectionMatrix(int index) const; + QMatrix4x4 projectionMatrixWithNativeNDC(int index) const; + int projectionMatrixCount() const; + int projectionMatrixWithNativeNDCCount() const; void setClearColor(const QColor &color); QColor clearColor() const; |