summaryrefslogtreecommitdiffstats
path: root/examples/opengl/textures/glwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/opengl/textures/glwidget.h')
-rw-r--r--examples/opengl/textures/glwidget.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/opengl/textures/glwidget.h b/examples/opengl/textures/glwidget.h
index 46507ce90d..4dcff3b82c 100644
--- a/examples/opengl/textures/glwidget.h
+++ b/examples/opengl/textures/glwidget.h
@@ -42,9 +42,10 @@
#ifndef GLWIDGET_H
#define GLWIDGET_H
+#include <QtGui>
#include <QGLWidget>
-class CubeObject;
+class QGLShaderProgram;
class GLWidget : public QGLWidget
{
@@ -78,7 +79,12 @@ private:
int xRot;
int yRot;
int zRot;
- CubeObject *cube;
+ GLuint textures[6];
+ QVector<QVector3D> vertices;
+ QVector<QVector2D> texCoords;
+#ifdef QT_OPENGL_ES_2
+ QGLShaderProgram *program;
+#endif
};
#endif