Results 1 to 3 of 3

Thread: drawing into QImage with OpenGL

  1. #1
    Join Date
    Feb 2010
    Location
    Poland
    Posts
    27
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default drawing into QImage with OpenGL

    Hi,
    Does anybody have some example how to draw into QImage with OpenGL? It will be much faster than using CPU. I need pixel by pixel access (for read and write), something like QImage::setPixel() method. I hope You know what am I asking about

    Thanks.

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

    Default Re: drawing into QImage with OpenGL

    See QGLPixelBuffer and QGLFramebufferObject. By the way, "pixel by pixel" is usually not what you get with OpenGL and I strongly doubt using OpenGL for pixel by pixel manipulation would be actually faster than using the raster engine.
    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. #3
    Join Date
    Feb 2010
    Location
    Poland
    Posts
    27
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: drawing into QImage with OpenGL

    Thanks, I'll invent something.

Similar Threads

  1. Mouse Drawing in opengl
    By sdastagirmca in forum Qt Programming
    Replies: 1
    Last Post: 15th October 2009, 09:32
  2. drawing in opengl
    By sdastagirmca in forum Qt Programming
    Replies: 2
    Last Post: 21st June 2009, 14:26
  3. Drawing QImage inside QTextDocument
    By giusepped in forum Qt Programming
    Replies: 0
    Last Post: 13th April 2009, 07:52
  4. drawing on a QPixmap or QImage
    By gren15 in forum Newbie
    Replies: 15
    Last Post: 3rd March 2009, 17:48
  5. Drawing a QImage over QWidgets
    By Antrax in forum Qt Programming
    Replies: 4
    Last Post: 5th October 2006, 16:45

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.