Provide a way to cheaply flip your painted FBO
authorSarah Smith <sarah.j.smith@nokia.com>
Thu, 20 Oct 2011 00:01:39 +0000 (10:01 +1000)
committerQt by Nokia <qt-info@nokia.com>
Sun, 23 Oct 2011 12:44:23 +0000 (14:44 +0200)
commit210bb5a06811057a8ce2747bd187817a06968042
treec527f929598d7e7858d18b46b7c027aea6d276f0
parentbfb3c424abc7c839dc44de0e36024ede99ece736
Provide a way to cheaply flip your painted FBO

After recent changes the painted images are upside down from previous
and there is no way to get at the texture coordinates to flip them back
without reimplementing QSGPainterNode and QSGPaintedItem.

This change adds only an enum and has minimal impact, while providing
useful functionality that also fixes this problem.

Change-Id: I6884da884d9303f6e08a984d4560cc7f7728d918
Reviewed-by: Sarah Jane Smith <sarah.j.smith@nokia.com>
src/declarative/items/qquickpainteditem.cpp
src/declarative/items/qquickpainteditem.h
src/declarative/scenegraph/util/qsgpainternode.cpp