diff options
Diffstat (limited to 'examples/opengl/overpainting/glwidget.h')
-rw-r--r-- | examples/opengl/overpainting/glwidget.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/examples/opengl/overpainting/glwidget.h b/examples/opengl/overpainting/glwidget.h index 5323a6f..6c9f7e0 100644 --- a/examples/opengl/overpainting/glwidget.h +++ b/examples/opengl/overpainting/glwidget.h @@ -50,6 +50,7 @@ #include <QTimer> class Bubble; +class QtLogo; QT_BEGIN_NAMESPACE class QPaintEvent; class QWidget; @@ -88,27 +89,24 @@ private slots: void animate(); private: - GLuint makeObject(); void createBubbles(int number); void drawInstructions(QPainter *painter); //! [1] - void extrude(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2); - void normalizeAngle(int *angle); - void quad(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2, - GLdouble x3, GLdouble y3, GLdouble x4, GLdouble y4); void setupViewport(int width, int height); + QColor qtGreen; + QColor qtPurple; + GLuint object; int xRot; int yRot; int zRot; QPoint lastPos; - QColor qtGreen; - QColor qtPurple; //! [4] + QtLogo *logo; QList<Bubble*> bubbles; QTimer animationTimer; -}; //! [4] +}; #endif |