summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
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/corelib/global
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/corelib/global')
-rw-r--r--src/corelib/global/qnamespace.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h
index 8f34e30..93de911 100644
--- a/src/corelib/global/qnamespace.h
+++ b/src/corelib/global/qnamespace.h
@@ -1655,7 +1655,8 @@ public:
FramebufferObject = 0x07, // GL framebuffer object
CustomRaster = 0x08,
MacQuartz = 0x09,
- PaintBuffer = 0x0a
+ PaintBuffer = 0x0a,
+ OpenGL = 0x0b
};
enum RelayoutType {
RelayoutNormal,