Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-9707

Support binding y-inverted pixmaps as QBrushes

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • 4.7.0
    • None
    • GUI: OpenGL, GUI: Painting
    • None
    • 0d1be2406cb58a51ef5a7271fbf5e191fe50ab91

    Description

      Most texture-from-pixmap implementations don't support inverting the y coordinate for bound pixmaps, making them bind up-side-down. The GL2 paint engine supports flipping the pixmaps back the correct way up by inverting the texture coordinates. However, this only works for drawPixmap. It would be great if we could support inverting the coordinates for a QBrush's pixmap too. This would make it possible to use texture-from-pixmap for QBrushs. Also, the GL2 doesn't currently implement drawTiledPixmap, falling back to the base implementation which uses fillRect with a pixmap brush. So implementing this would also allow drawTiledPixmap to use texture-from-pixmap too.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tcooksey Tom Cooksey
            tcooksey Tom Cooksey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes