11 #include "qobjectdefs.h"
22 // Note: We use the older QGLWidget instead of QOpenGLWidget as it is
23 // much faster (does not go through a separate offscreen rendering step).
25 // TODO: Consider if QOpenGLWindow could do what we want.
26 class GLWidget : public QGLWidget
31 GLWidget(QWidget *parent = 0);
33 void set_output(Mixer::Output output)
35 this->output = output;
41 void initializeGL() override;
42 void resizeGL(int width, int height) override;
43 void paintGL() override;
44 void mousePressEvent(QMouseEvent *event) override;
48 void transition_names_updated(std::vector<std::string> transition_names);
49 void resolution_updated(Mixer::Output output);
52 void show_context_menu(unsigned signal_num, const QPoint &pos);
56 GLuint vao, program_num;
57 GLuint position_vbo, texcoord_vbo;
58 movit::ResourcePool *resource_pool = nullptr;