diff options
author | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-09-09 10:27:46 (GMT) |
---|---|---|
committer | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-09-09 10:29:56 (GMT) |
commit | c0c5f52efeb62d05c2c6a379a46fccb1166ce73d (patch) | |
tree | 95fa750655518d5820c83b9be0fb7ec85fb037ce /src/opengl/qglpixelbuffer.cpp | |
parent | 48b5fa29f5da3c241bc64520bd56ccd5713c4586 (diff) | |
download | Qt-c0c5f52efeb62d05c2c6a379a46fccb1166ce73d.zip Qt-c0c5f52efeb62d05c2c6a379a46fccb1166ce73d.tar.gz Qt-c0c5f52efeb62d05c2c6a379a46fccb1166ce73d.tar.bz2 |
Doc update regarding threaded painting with QPainter in the QGL module.
Reviewed-by: Gunnar
Diffstat (limited to 'src/opengl/qglpixelbuffer.cpp')
-rw-r--r-- | src/opengl/qglpixelbuffer.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/opengl/qglpixelbuffer.cpp b/src/opengl/qglpixelbuffer.cpp index 3d9cd21..da2974c 100644 --- a/src/opengl/qglpixelbuffer.cpp +++ b/src/opengl/qglpixelbuffer.cpp @@ -70,6 +70,14 @@ extension. \endlist + + \section Threading + + As of Qt 4.8, it's possible to render into a QGLPixelBuffer using + a QPainter in a separate thread. Note that OpenGL 2.0 or OpenGL ES + 2.0 is required for this to work. Also, under X11, it's necessary + to set the Qt::AA_X11InitThreads application attribute. + Pbuffers are provided by the OpenGL \c pbuffer extension; call hasOpenGLPbuffer() to find out if the system provides pbuffers. |