You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qt3/examples/demo/opengl/glgear.h

27 lines
455 B

#ifndef GLGEAR_H
#define GLGEAR_H
#include "glcontrolwidget.h"
class GLGear : public GLControlWidget
{
Q_OBJECT
public:
GLGear( QWidget *parent = 0, const char *name = 0, WFlags f = 0 );
protected:
void draw();
void animate();
void initializeGL();
void resizeGL( int, int );
void paintGL();
private:
GLfloat view_rotx, view_roty, view_rotz;
GLint gear1, gear2, gear3;
GLfloat angle;
};
#endif // GLGEAR_H