From 80dbdf0de3bfe5f0710a1c37932ef81cbdb5fbff Mon Sep 17 00:00:00 2001 From: Paul Olav Tvete Date: Wed, 22 Jul 2015 13:38:26 +0200 Subject: Make the gles3 example more impressive Add some extra rotations and offsets, to show off the power of what you can do with a single draw call. Also use QGLWindow instead of QGLWidget. This improves performance from 23 FPS to 30 FPS on a 4k monitor with integrated Intel graphics. Change-Id: Iedac1c14cc6057959aa15faaacdf29da91f36ab1 Reviewed-by: Laszlo Agocs --- examples/opengl/hellogles3/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/opengl/hellogles3/main.cpp') diff --git a/examples/opengl/hellogles3/main.cpp b/examples/opengl/hellogles3/main.cpp index 3125623395..f0de28bdc4 100644 --- a/examples/opengl/hellogles3/main.cpp +++ b/examples/opengl/hellogles3/main.cpp @@ -38,11 +38,11 @@ ** ****************************************************************************/ -#include +#include #include #include -#include "mainwindow.h" +#include "glwindow.h" // This example demonstrates easy, cross-platform usage of OpenGL ES 3.0 functions via // QOpenGLExtraFunctions in an application that works identically on desktop platforms @@ -69,10 +69,10 @@ int main(int argc, char *argv[]) QSurfaceFormat::setDefaultFormat(fmt); - QApplication app(argc, argv); + QGuiApplication app(argc, argv); - MainWindow mainWindow; - mainWindow.showMaximized(); + GLWindow glWindow; + glWindow.showMaximized(); return app.exec(); } -- cgit v1.2.3