Nested Viewports
authorPaul Lemire <paul.lemire@kdab.com>
Fri, 18 Apr 2014 11:12:15 +0000 (13:12 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 19 Apr 2014 12:55:35 +0000 (14:55 +0200)
commit5393f7d7276eccb156f1d2201a9bea88034224a4
treec9dafe2bb317a55cdcf6310e2f2cc58e61e7bcc6
parent9852c55a8b544c6ec9d65eb3857adfa7e4f6edcd
Nested Viewports

Allows to set up multiple viewports. A child viewport defines
a region relative to the parent viewport. In Qt3D viewports are
defined from the top left unlike OpenGL which defines from lower
left. Viewport values should be in the 0-1 range.
Simple-qml updated with 1 viewport with 2 nested viewports.
Each sub viewport displays the same scene using a different
camera.

Change-Id: I7743c2518d49f0d3d48fe56a6e9f4b133302511b
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
examples/simple-qml/ForwardRenderer.qml
examples/simple-qml/main.qml
src/render/backend/framegraph/viewportnode.cpp
src/render/backend/qgraphicscontext.cpp
src/render/backend/renderscenebuilder.cpp
src/render/backend/renderview.cpp
src/render/backend/renderview.h