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