summaryrefslogtreecommitdiffstats
path: root/src/opengl/opengl.pro
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2009-08-27 14:08:20 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2009-09-08 16:36:13 (GMT)
commit7c59abc1883a24e54ac3bb2193acc2cac5ad416a (patch)
tree589ab0cedd22197bace46f8b616998de5127b40c /src/opengl/opengl.pro
parent5a3d0e73121e191fe2f1337ac8f6761c35868b66 (diff)
downloadQt-7c59abc1883a24e54ac3bb2193acc2cac5ad416a.zip
Qt-7c59abc1883a24e54ac3bb2193acc2cac5ad416a.tar.gz
Qt-7c59abc1883a24e54ac3bb2193acc2cac5ad416a.tar.bz2
Replace QGLDrawable with a new QGLPaintDevice
This patch adds a new abstract base class which inherits from QPaintDevice called QGLPaintDevice. This base class will contain everything the GL paint engines need to know about the surface they are drawing onto. As such, new surfaces can be targeted by the GL paint engines without having to modify QtOpenGL. This is very useful for plugins, specifically QGraphicsSystem plugins. To unify things a little, the GL paint engines will use the same QGLPaintDevice API to render into existing target surfaces (QGLWidget, QGLPixelBuffer & QGLFrameBufferObject). Ideally we'd make QGLPaintDevice a common ancestor for these surfaces, but obviously that wil break B/C. This patch only implements QGLWidget using the new interface. Rendering to other surfaces will be fixed in following patches.
Diffstat (limited to 'src/opengl/opengl.pro')
-rw-r--r--src/opengl/opengl.pro6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/opengl/opengl.pro b/src/opengl/opengl.pro
index 560d31f..2aefe41 100644
--- a/src/opengl/opengl.pro
+++ b/src/opengl/opengl.pro
@@ -22,13 +22,17 @@ HEADERS += qgl.h \
qglpixelbuffer.h \
qglpixelbuffer_p.h \
qglframebufferobject.h \
- qglextensions_p.h
+ qglextensions_p.h \
+ qglpaintdevice_p.h \
+
SOURCES += qgl.cpp \
qglcolormap.cpp \
qglpixelbuffer.cpp \
qglframebufferobject.cpp \
qglextensions.cpp \
+ qglpaintdevice.cpp \
+
!contains(QT_CONFIG, opengles2) {
HEADERS += qpaintengine_opengl_p.h