Results 1 to 3 of 3

Thread: Paint Engine Question

  1. #1
    Join Date
    Jun 2011
    Location
    Rhode Island
    Posts
    16
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Paint Engine Question

    Hello all,

    I am implementing a QPaintEngine with my own backend. I was wondering, on a call from the painter to the engine to drawPolygon it passes in an array of points, are those points in order? I need to know because I am rendering the polygon in a proprietary openGL graphics engine.
    SEGMENTATION FAULT: At who the hell knows where.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Paint Engine Question

    They have to be in order as the order of points in a polygon matters. The same two sets of points in different order may give a completely different result (especially if the polygon is filled).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    hypnotic401 (4th December 2012)

  4. #3
    Join Date
    Jun 2011
    Location
    Rhode Island
    Posts
    16
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Paint Engine Question

    Excellent just want I wanted to hear, I didn't want to make a false assumption and have things go awry! Now on to the tessellation of said polygon!
    SEGMENTATION FAULT: At who the hell knows where.

Similar Threads

  1. Replies: 0
    Last Post: 8th September 2011, 07:53
  2. Paint Engine
    By ^NyAw^ in forum Qt Programming
    Replies: 9
    Last Post: 22nd January 2010, 00:44
  3. paint device returned engine == 0, type: 3
    By MarkoSan in forum Qt Programming
    Replies: 14
    Last Post: 12th December 2007, 10:42
  4. cairo4qt 0.9 - a cairo based paint engine for Qt4
    By dragchan in forum Qt-based Software
    Replies: 0
    Last Post: 18th May 2007, 05:07
  5. Using QGLWidget paint engine to draw regular widgtes?
    By high_flyer in forum Qt Programming
    Replies: 11
    Last Post: 9th October 2006, 12:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.