Details
-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
5.3.1
-
None
Description
In order to setTextureCoordinatesTransform on a QQuickFramebufferObject I'm using the following hack.
QSGNode *MyQQuickFramebufferObject::updatePaintNode(QSGNode *node, QQuickItem::UpdatePaintNodeData *nodeData) { if (!node) { node = QQuickFramebufferObject::updatePaintNode(node, nodeData); QSGSimpleTextureNode *n = static_cast<QSGSimpleTextureNode *>(node); if (n) n->setTextureCoordinatesTransform(QSGSimpleTextureNode::MirrorVertically); return node; } return QQuickFramebufferObject::updatePaintNode(node, nodeData); }
IMHO QQuickFramebufferObject should provide an easier way to setTextureCoordinatesTransform of its texture.
Attachments
For Gerrit Dashboard: QTBUG-41073 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
114793,5 | Add a property to enable vertical mirroring in QQuickFramebufferObject | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |