QUniformValue overloaded constructor from Variant

It assumes the type is float. Also restored the name argument in apply as it
helps debugging.

Change-Id: I0157463bd941d49291503145d791b089a2b5616e
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
ParameterPack in RenderTechnique

Change-Id: I4f7b36df4c3b76c28b6c1b8c0547fe587c3de479
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Added dtor and getter to ParameterPack

Change-Id: I03b6ddedbaf348a8a19bb03df7b6b05e1b2d9f38
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
RenderView using ParameterPack to build QUniformPack

Change-Id: Ibf1a5ea024136f8c716bf5a5cfd1db7dbe911b59
Note: At the moment we assume default names for StandardUniforms and Attributes.
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
RenderEffect getter of backend parameters

Change-Id: Ided850a11126bda18e339565797f4b1122bdb9d0
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
RenderTechnique getter of backend parameters and cleanup

Change-Id: If92199f4fe17344628677375c29c9bc93e503e7a
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Unregister RenderEffect on destruction

Change-Id: I9d4151c4bae9b7401363a1f62e4a90ef46b9daa7
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Unregister RenderTechnique on destruction

Change-Id: I84f435fec1f118cd90afec8bba2b5eba1fda97ca
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
RenderView using Parameters from effect, technique and material

Change-Id: I3d46d4650444a1e86b6f2baa4ee33bb0d1a01b6a
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Updated simple-qml example with Parameter animations

Change-Id: I0501ade960a27ab68002e9b4f914adc1be74e052
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Cleanup of Parameter

A Parameter is now used only for user specified uniforms. For StandardUniforms
and Attributes we could rely on the ParameterBinder. In case a mesh attribute
or standard uniform doesn't have the default name used by Qt3D shaders (that
will have to be specified somewhere), a ParameterBinder could be added to
solve that issue. Will see how that goes in a follow up patch.

Change-Id: I41bd0d4ef2ac731c109f87fca5b28571074bfba5
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Renamed ParameterBinder to ParameterMapper

Change-Id: I3334a09f992d84988e1f6c82b439a6457546a77b
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Removed unused slot in Quick3DMaterial

Change-Id: Ic76dabedfafae4c70777f6cd7ce96912829c69ac
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
UnitTests for Nodes/Entity/Component

Change-Id: Ic9558158f00d8bff0f7efc0fe3576027a03daae9
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Changes to QGraphicContext

Lots of cleanup. StandardUniforms are set when building the RenderCommands
which allows to cleanup QGraphicContext quite a bit.

Note: This commit is part of a series of modifications that need to be merged
together but are committed separately to ease the reviewing process.

Change-Id: I86277f522159a0c67487d8282dbcc86f4a0df2bd
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
QUniformValue templated subclass

QUniformValue is now a base class. A templated subclass contains the actual
uniform values. Having a template here allows to use the right  overloaded
setUniformValue method in QOpenGLShaderProgram.

Note: This commit is part of a series of modifications that need to be merged
together but are committed separately to ease the reviewing process.

Change-Id: I7c3e548ae33730a36a9a7ba83bbd281ba656e875
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
RenderCamera cleanup and added inline getters

Note: This commit is part of a series of modifications that need to be merged
together but are committed separately to ease the reviewing process.

Change-Id: I738b94fc77a17c7ff948acb40ad80da9fb691cbe
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Renderer refactored

Updated to not submit the modelMatrix and RenderCamera to the QGraphicContext
as not needed anymore. Also defined default handles to the default material
classes so that the defaultMaterial can be assigned directly when building
RenderCommands instead of checking when actually performing the rendering.

Note: This commit is part of a series of modifications that need to be merged
together but are committed separately to ease the reviewing process.

Change-Id: I5d7ade4b4e788e27a7add86221656de95c0418ba
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
RenderShader updated

Doesn't contain standardUniforms any longer. StandardUniforms and user defined
Uniforms are now passed directly by a QUniformPack at rendering time.

A later improvement could be to check for a given shader, whether a uniform is
updated instead of resetting it every time.

Note: This commit is part of a series of modifications that need to be merged
together but are committed separately to ease the reviewing process.

Change-Id: Ib3028dfca42032e4bf37cd307bb4c87ba739845d
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
StandardUniforms enums registered as a metatype

Change-Id: I4591392053a12ca184c7036d35f35de42d557c86
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>