home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / examples / demo / opengl / glgear.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-03-15  |  455 b   |  27 lines

  1. #ifndef GLGEAR_H
  2. #define GLGEAR_H
  3.  
  4. #include "glcontrolwidget.h"
  5.  
  6. class GLGear : public GLControlWidget
  7. {
  8.     Q_OBJECT
  9.  
  10. public:
  11.     GLGear( QWidget *parent = 0, const char *name = 0, WFlags f = 0 );
  12.  
  13. protected:
  14.     void draw();
  15.     void animate();
  16.     void initializeGL();
  17.     void resizeGL( int, int );
  18.     void paintGL();
  19.     
  20. private:
  21.     GLfloat view_rotx, view_roty, view_rotz;
  22.     GLint gear1, gear2, gear3;
  23.     GLfloat angle;
  24. };
  25.  
  26. #endif // GLGEAR_H
  27.