summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/openkode/qopenkodeintegration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/openkode/qopenkodeintegration.cpp')
-rw-r--r--src/plugins/platforms/openkode/qopenkodeintegration.cpp23
1 files changed, 20 insertions, 3 deletions
diff --git a/src/plugins/platforms/openkode/qopenkodeintegration.cpp b/src/plugins/platforms/openkode/qopenkodeintegration.cpp
index d9430c2..cd957af 100644
--- a/src/plugins/platforms/openkode/qopenkodeintegration.cpp
+++ b/src/plugins/platforms/openkode/qopenkodeintegration.cpp
@@ -42,6 +42,10 @@
#include "qopenkodeintegration.h"
#include "qopenkodewindowsurface.h"
#include "qopenkodewindow.h"
+#include "qopenkodeglintegration.h"
+
+#include <QtOpenGL/private/qpixmapdata_gl_p.h>
+#include <QtOpenGL/private/qwindowsurface_gl_p.h>
#include <QtGui/private/qpixmap_raster_p.h>
@@ -198,7 +202,7 @@ QOpenKODEIntegration::QOpenKODEIntegration()
QPixmapData *QOpenKODEIntegration::createPixmapData(QPixmapData::PixelType type) const
{
- return new QRasterPixmapData(type);
+ return new QGLPixmapData(type);
}
QPlatformWindow *QOpenKODEIntegration::createPlatformWindow(QWidget *tlw, WId ) const
@@ -206,9 +210,22 @@ QPlatformWindow *QOpenKODEIntegration::createPlatformWindow(QWidget *tlw, WId )
return new QOpenKODEWindow(tlw);
}
-QWindowSurface *QOpenKODEIntegration::createWindowSurface(QWidget *widget, WId winId) const
+QWindowSurface *QOpenKODEIntegration::createWindowSurface(QWidget *widget, WId wid) const
+{
+ return new QGLWindowSurface(widget);
+}
+
+bool QOpenKODEIntegration::hasOpenGL() const
+{
+ return true;
+}
+QPlatformGLContext *QOpenKODEIntegration::createGLContext()
+{
+ return new QEGLPlatformContext;
+}
+QPlatformGLWidgetSurface *QOpenKODEIntegration::createGLWidgetSurface()
{
- return new QOpenKODEWindowSurface(widget,winId);
+ return new QEGLPlatformWidgetSurface;
}
GLuint QOpenKODEIntegration::blitterProgram()