11 #include "qobjectdefs.h"
16 // Note: We use the older QGLWidget instead of QOpenGLWidget as it is
17 // much faster (does not go through a separate offscreen rendering step).
19 // TODO: Consider if QOpenGLWindow could do what we want.
20 class GLWidget : public QGLWidget
25 GLWidget(QWidget *parent = 0);
28 void set_output(Mixer::Output output)
30 this->output = output;
34 void initializeGL() override;
35 void resizeGL(int width, int height) override;
36 void paintGL() override;
37 void mousePressEvent(QMouseEvent *event) override;
41 void transition_names_updated(std::vector<std::string> transition_names);
45 GLuint vao, program_num;
46 GLuint position_vbo, texcoord_vbo;