Improved and made public the QOpenGLPaintDevice API.
authorSamuel Rødal <samuel.rodal@nokia.com>
Wed, 7 Sep 2011 08:31:03 +0000 (10:31 +0200)
committerPaul Olav Tvete <paul.tvete@nokia.com>
Thu, 8 Sep 2011 09:07:56 +0000 (11:07 +0200)
commit1b1831500142c995137f5e4b1bc03d21aa08e1e1
tree5fcd21ee23c37fbe3466fde353d0bcfd09a051e2
parent68974d8e647febb80a47d9cf6ce9452f3ce4fa21
Improved and made public the QOpenGLPaintDevice API.

The new API is more flexible, allowing the use of QOpenGLPaintDevice
with any QOpenGLContext, and putting more responsibility on the user for
ensuring the correct FBO is current (the user knows best anyhow).

Task-number: QTBUG-21263

Change-Id: I50b954125f552baef52fbb3fe2ed907a11ad519c
Reviewed-on: http://codereview.qt-project.org/4325
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
13 files changed:
examples/opengl/paintedwindow/main.cpp
examples/opengl/paintedwindow/paintedwindow.cpp
examples/opengl/paintedwindow/paintedwindow.h
src/gui/opengl/opengl.pri
src/gui/opengl/qopengl_p.h
src/gui/opengl/qopenglframebufferobject.cpp
src/gui/opengl/qopenglframebufferobject.h
src/gui/opengl/qopenglframebufferobject_p.h
src/gui/opengl/qopenglpaintdevice.cpp
src/gui/opengl/qopenglpaintdevice.h [moved from src/gui/opengl/qopenglpaintdevice_p.h with 65% similarity]
src/gui/opengl/qopenglpaintengine.cpp
src/gui/opengl/qopenglpaintengine_p.h
src/gui/painting/qpaintdevice.h