#ifndef GLWINDOW_H #define GLWINDOW_H #include #include #include #include #include "node.h" #include "ball.h" /** * glwindow is the main window **/ class GLWindow : public QGLWidget { Q_OBJECT public: GLWindow( QWidget* parent = 0, const char* name = 0 ); protected: void initializeGL(); void resizeGL( int w, int h ); void paintGL(); protected slots: void togglePaused(){ paused = !paused; } void tick(); signals: void numBallsChanged( const QString& ); protected: bool paused; QValueVector nodes; }; #endif