|
Last change
on this file since 175 was 160, checked in by dmik, 19 years ago |
|
Imported table and iconview modules and a bunch of dependent examples from the official release 3.3.1 from Trolltech.
|
-
Property svn:keywords
set to
Id
|
|
File size:
481 bytes
|
| Line | |
|---|
| 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
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.