[Interest] Flip a QSGSimpleTextureNode

BOUCARD Olivier boucard_olivier at yahoo.fr
Sun May 19 23:25:09 CEST 2013

OK! Since I have found the solution. I answer to myself.

I just add this code:
QMatrix4x4 flipY;

flipY.translate(width()/2.0, height()/2.0);
flipY.scale(1.0, -1.0);
flipY.translate(-width()/2.0, -height()/2.0);


In the updatePaintNode of my custom QQuickItem which declares the QSGSimpleTextureNode.


> De : BOUCARD Olivier <boucard_olivier at yahoo.fr>
>À : "interest at qt-project.org" <interest at qt-project.org> 
>Envoyé le : Dimanche 19 mai 2013 22h26
>Objet : [Interest] Flip a QSGSimpleTextureNode
>Hi guys,
>I'm trying to draw native OpenGL using QSGSimpleTextureNode.
>The problem is that my Y axis is upside-down.
>Is there a way to flip the axis when rendering the texture to the screen?
>Thanks for any help.
>Olivier Boucard.
>Interest mailing list
>Interest at qt-project.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130519/773f5729/attachment.html>

More information about the Interest mailing list