aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/scenegraph/qsgcontext_p.h
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2011-09-23 16:24:06 +0200
committerQt by Nokia <qt-info@nokia.com>2011-09-26 10:46:29 +0200
commit73a9e0a7657112cac94107f771c33270467eff08 (patch)
tree7c46167a2055deb5cc08346446d6033a1a9d1a1a /src/declarative/scenegraph/qsgcontext_p.h
parent162b52e7e95e3fcd747fb4b1867bcc54e603c266 (diff)
Make surface format plugable from the scene graph plugin
Also enable depth, stencil and samples by default as our default renderer requires both depth and stencil and our default rounded rectangles require multisampling The user should be able to override the default format, by getting the QSGCanvas::format(), modify it and set it back, but this is currently not supported in QWindow, so that will have to wait Change-Id: I1869003705709987ab2e9a3cebbeeec4d45a2021 Reviewed-on: http://codereview.qt-project.org/5464 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/declarative/scenegraph/qsgcontext_p.h')
-rw-r--r--src/declarative/scenegraph/qsgcontext_p.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/declarative/scenegraph/qsgcontext_p.h b/src/declarative/scenegraph/qsgcontext_p.h
index a05854ebe8..6fdd4aed37 100644
--- a/src/declarative/scenegraph/qsgcontext_p.h
+++ b/src/declarative/scenegraph/qsgcontext_p.h
@@ -42,9 +42,11 @@
#ifndef QSGCONTEXT_H
#define QSGCONTEXT_H
-#include <QImage>
-#include <QObject>
-#include <qabstractanimation.h>
+#include <QtCore/QObject>
+#include <QtCore/qabstractanimation.h>
+
+#include <QtGui/QImage>
+#include <QtGui/QSurfaceFormat>
#include "qsgnode.h"
@@ -105,6 +107,8 @@ public:
virtual QSGTexture *createTexture(const QImage &image = QImage()) const;
virtual QSize minimumFBOSize() const;
+ virtual QSurfaceFormat defaultSurfaceFormat() const;
+
static QSGContext *createDefaultContext();
void scheduleTextureForCleanup(QSGTexture *texture);