summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xlib/qglxintegration.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2011-08-24 14:46:24 +0200
committerJørgen Lind <jorgen.lind@nokia.com>2011-08-25 09:31:39 +0200
commit82f95318d61dbfebaa04182de2445a6576a621cd (patch)
treeaabdbb2f6e05e0933004e507898f194248e032c2 /src/plugins/platforms/xlib/qglxintegration.h
parentb2c4c4fc2aee411b4476c6a351688060785aed7e (diff)
Fix the xlib backend for lighthouse
Adapt the backend to the changes in lighthouse. Change-Id: If2d795c901143a80eed4f23d14add6ab9f42750b Reviewed-on: http://codereview.qt.nokia.com/3568 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/plugins/platforms/xlib/qglxintegration.h')
-rw-r--r--src/plugins/platforms/xlib/qglxintegration.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/plugins/platforms/xlib/qglxintegration.h b/src/plugins/platforms/xlib/qglxintegration.h
index 07c2a77f5d..91e16db79e 100644
--- a/src/plugins/platforms/xlib/qglxintegration.h
+++ b/src/plugins/platforms/xlib/qglxintegration.h
@@ -45,7 +45,7 @@
#include "qxlibwindow.h"
#include <QtGui/QPlatformGLContext>
-#include <QtGui/QPlatformWindowFormat>
+#include <QtGui/qsurfaceformat.h>
#include <QtCore/QMutex>
@@ -57,25 +57,23 @@ QT_BEGIN_NAMESPACE
class QGLXContext : public QPlatformGLContext
{
public:
- QGLXContext(Window window, QXlibScreen *xd, const QPlatformWindowFormat &format);
+ QGLXContext(QXlibScreen *xd, const QSurfaceFormat &format, QPlatformGLContext *share);
~QGLXContext();
- virtual void makeCurrent();
- virtual void doneCurrent();
- virtual void swapBuffers();
- virtual void* getProcAddress(const QString& procName);
+ QSurfaceFormat format() const;
+ void swapBuffers(QPlatformSurface *surface);
+ bool makeCurrent(QPlatformSurface *surface);
+ void doneCurrent();
+ virtual void (*getProcAddress(const QByteArray& procName))();
GLXContext glxContext() const {return m_context;}
- QPlatformWindowFormat platformWindowFormat() const;
+ QSurfaceFormat surfaceFormat() const;
private:
QXlibScreen *m_screen;
- Drawable m_drawable;
GLXContext m_context;
- QPlatformWindowFormat m_windowFormat;
-
- QGLXContext (QXlibScreen *screen, Drawable drawable, GLXContext context);
+ QSurfaceFormat m_windowFormat;
};
QT_END_NAMESPACE