15 // Note: We use the older QGLWidget instead of QOpenGLWidget as it is
16 // much faster (does not go through a separate offscreen rendering step).
18 // TODO: Consider if QOpenGLWindow could do what we want.
19 class GLWidget : public QGLWidget
24 GLWidget(QWidget *parent = 0);
27 void set_output(Mixer::Output output)
29 this->output = output;
33 void initializeGL() override;
34 void resizeGL(int width, int height) override;
35 void paintGL() override;
36 void mousePressEvent(QMouseEvent *event) override;
40 void transition_names_updated(std::vector<std::string> transition_names);
44 movit::ResourcePool *resource_pool;
45 GLuint vao, program_num;
46 GLuint position_vbo, texcoord_vbo;