13 // Note: We use the older QGLWidget instead of QOpenGLWidget as it is
14 // much faster (does not go through a separate offscreen rendering step).
16 // TODO: Consider if QOpenGLWindow could do what we want.
17 class GLWidget : public QGLWidget
22 GLWidget(QWidget *parent = 0);
26 void initializeGL() override;
27 void resizeGL(int width, int height) override;
28 void paintGL() override;
31 movit::ResourcePool *resource_pool;
32 GLuint vao, program_num;
33 GLuint position_vbo, texcoord_vbo;