Created subclass of QShaderData to hold all lights for the scene.
GL3 shader updated accordingly.
For GL2/ES2 to work, QShaderData uniform struct support needs to be
implemented
Change-Id: I5560eac23234e53feba18b607276159989700141
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
The Qt3D::Window doesn't contain the QAspectEngine anymore. This will allow
to to pass any kind of surface to the QAspectEngine.
We could still have a wrapper like QQuickView around the QQmlAspectEngine if
needed but if it weren't for the camera controller that we need to keep a
little longer, a simple QWindow could be used in every example.
All examples were updated.
Change-Id: I4921df0df6f1066cd409ea886faf41d7e8834ef6
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
The scene root is now also enforced to be a QEntity as that is what we
were checking for in the backend anyway as it is impossible to create
a plain QNode.
This is another step towards solving the shutdown crashing bug.
Change-Id: I8508afa80ec9e99954ab867be1ed28bc35405e79
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
All examples updated to work with the modifications.
Change-Id: I51a3036fa750ca297a2180c488747d0878b940a4
Task-number: QTBUG-41543
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Move almost everything to private classes.
Assimp loading restored.
All examples working.
QNode hierachy is now handled through QObject::setParent, addChild,
removeChild are part of the private api.
Note: commented QChangeArbiter unit tests as they can no longer work with this
patch and will restore them when QChangeArbiter will have been made private.
Task-number: QTBUG-41470
Task-number: QTBUG-41523
Change-Id: I4430974b3aa7f3744c38714b451b122e0cb4d0c9
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>