Add possibility to mirror ShaderEffectSource generated textures
authorMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>
Mon, 10 Aug 2015 11:33:14 +0000 (14:33 +0300)
committerMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>
Thu, 20 Aug 2015 09:49:18 +0000 (09:49 +0000)
commit3f4d7a755585f1b79c7e9675220b8210f10f358e
tree50e4e4faef56413bede418bcf495ca7fe41677ba
parent04f30db289225e700fe99c163f53f0dd7e920caf
Add possibility to mirror ShaderEffectSource generated textures

Using textures generated by ShaderEffectSource items (or Item.layer)
with custom OpenGL code was non-intuitive due to mismatching coordinate
systems, so added a possibility to control the generated texture
orientation.

[ChangeLog][QtQuick][ShaderEffectSource] Added possibility to mirror
generated OpenGL texture.

Change-Id: I7c03d8b6fbfc43d69812c15d244200fb8e7c7bb9
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
src/quick/items/qquickitem.cpp
src/quick/items/qquickitem_p.h
src/quick/items/qquickitemsmodule.cpp
src/quick/items/qquickshadereffectsource.cpp
src/quick/items/qquickshadereffectsource_p.h
src/quick/scenegraph/qsgadaptationlayer_p.h
src/quick/scenegraph/qsgdefaultlayer.cpp
src/quick/scenegraph/qsgdefaultlayer_p.h
tests/auto/quick/qquickitemlayer/data/TextureMirroring.qml [new file with mode: 0644]
tests/auto/quick/qquickitemlayer/qquickitemlayer.pro
tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp