23 // Note: We use the older QGLWidget instead of QOpenGLWidget as it is
24 // much faster (does not go through a separate offscreen rendering step).
26 // TODO: Consider if QOpenGLWindow could do what we want.
27 class GLWidget : public QGLWidget
32 GLWidget(QWidget *parent = 0);
34 void set_output(Mixer::Output output)
36 this->output = output;
42 void initializeGL() override;
43 void resizeGL(int width, int height) override;
44 void paintGL() override;
45 void mousePressEvent(QMouseEvent *event) override;
49 void transition_names_updated(std::vector<std::string> transition_names);
50 void name_updated(Mixer::Output output, const std::string &name);
51 void color_updated(Mixer::Output output, const std::string &color);
54 void show_live_context_menu(const QPoint &pos);
55 void show_preview_context_menu(unsigned signal_num, const QPoint &pos);
59 GLuint vao, program_num;
60 GLuint position_vbo, texcoord_vbo;
61 movit::ResourcePool *resource_pool = nullptr;