From 176f30b13739b352cbe453cba7796d9a9c808bcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20R=C3=B8dal?= Date: Tue, 21 Jun 2011 13:39:26 +0200 Subject: OpenGL API refactor. Rename QGuiGLFormat to QSurfaceFormat, and make QWindow sub-class of QSurface and QPlatformWindow sub-class of QPlatformSurface, instead of having QPlatformGLSurface accessor in QWindow. --- examples/opengl/hellowindow/hellowindow.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/opengl/hellowindow/hellowindow.h') diff --git a/examples/opengl/hellowindow/hellowindow.h b/examples/opengl/hellowindow/hellowindow.h index 274dc9ca173..3c5388cb76a 100644 --- a/examples/opengl/hellowindow/hellowindow.h +++ b/examples/opengl/hellowindow/hellowindow.h @@ -12,9 +12,9 @@ class Renderer : public QObject public: Renderer(); - QGuiGLFormat format() const; + QSurfaceFormat format() const; - void render(QPlatformGLSurface *surface, const QColor &color, const QSize &viewSize); + void render(QSurface *surface, const QColor &color, const QSize &viewSize); private: void initialize(); @@ -35,7 +35,7 @@ private: int colorUniform; bool m_initialized; - QGuiGLFormat m_format; + QSurfaceFormat m_format; QGuiGLContext *m_context; }; -- cgit v1.2.3