00001 #ifndef RENDERINGSURFACE_H
00002 #define RENDERINGSURFACE_H
00003
00004 #include <QtOpenGL>
00005
00009 class RenderingSurface : public QGLWidget
00010 {
00011 Q_OBJECT
00012
00013 public:
00014 RenderingSurface(const QGLFormat& format, QWidget* parent=0, const QGLWidget* shareWidget = 0, Qt::WindowFlags f=0);
00015 virtual ~RenderingSurface();
00016
00017 signals:
00019 void initGLFinished();
00020
00021 public slots:
00023 void processTimer();
00025 void screenShot();
00026
00027 private:
00029 QTimer* animationTimer;
00030
00032 void initializeGL();
00034 void resizeGL(int w, int h);
00036 void paintGL();
00037
00038 };
00039
00040 #endif