summaryrefslogtreecommitdiffstats
path: root/examples/opengl/shared
diff options
context:
space:
mode:
authorSarah Smith <sarah.j.smith@nokia.com>2009-10-09 02:00:25 (GMT)
committerSarah Smith <sarah.j.smith@nokia.com>2009-10-09 02:00:25 (GMT)
commit3d91051ce5ff92501b33580f1726f6726795c42d (patch)
treeceb60ad4e2f0b26fa6ef4412552118ad96705dc8 /examples/opengl/shared
parentef8d9fa7091b0d45fe15aae43b8f1c47547cb16d (diff)
downloadQt-3d91051ce5ff92501b33580f1726f6726795c42d.zip
Qt-3d91051ce5ff92501b33580f1726f6726795c42d.tar.gz
Qt-3d91051ce5ff92501b33580f1726f6726795c42d.tar.bz2
hellogl now runs on QT_OPENGL_ES_1 (ie N95).
effort to have examples show portable GL code continues. One #ifdef in whole example and it now runs on N95 and desktop. Reviewed-by: Rhys Weatherley
Diffstat (limited to 'examples/opengl/shared')
-rw-r--r--examples/opengl/shared/qtlogo.cpp6
-rw-r--r--examples/opengl/shared/qtlogo.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/examples/opengl/shared/qtlogo.cpp b/examples/opengl/shared/qtlogo.cpp
index b32b416..bad83d1 100644
--- a/examples/opengl/shared/qtlogo.cpp
+++ b/examples/opengl/shared/qtlogo.cpp
@@ -39,6 +39,12 @@
**
****************************************************************************/
+#include <QGLWidget>
+#include <QMatrix4x4>
+#include <QVector3D>
+
+#include <qmath.h>
+
#include "qtlogo.h"
static const qreal tee_height = 0.311126;
diff --git a/examples/opengl/shared/qtlogo.h b/examples/opengl/shared/qtlogo.h
index 4f5c357..152958b 100644
--- a/examples/opengl/shared/qtlogo.h
+++ b/examples/opengl/shared/qtlogo.h
@@ -43,7 +43,7 @@
#define QTLOGO_H
#include <QObject>
-#include <QtOpenGL>
+#include <QColor>
class Patch;
struct Geometry;