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;
39 movit::ResourcePool *resource_pool;
40 GLuint vao, program_num;
41 GLuint position_vbo, texcoord_vbo;