PDA

View Full Version : drawing into QImage with OpenGL



produktdotestow
23rd July 2010, 12:02
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.

wysota
23rd July 2010, 12:51
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.

produktdotestow
23rd July 2010, 13:10
Thanks, I'll invent something.