11 #include "qobjectdefs.h"
20 // Note: We use the older QGLWidget instead of QOpenGLWidget as it is
21 // much faster (does not go through a separate offscreen rendering step).
23 // TODO: Consider if QOpenGLWindow could do what we want.
24 class GLWidget : public QGLWidget
29 GLWidget(QWidget *parent = 0);
32 void set_output(Mixer::Output output)
34 this->output = output;
38 void initializeGL() override;
39 void resizeGL(int width, int height) override;
40 void paintGL() override;
41 void mousePressEvent(QMouseEvent *event) override;
45 void transition_names_updated(std::vector<std::string> transition_names);
49 movit::ResourcePool *resource_pool;
50 GLuint vao, program_num;
51 GLuint position_vbo, texcoord_vbo;