-
- // Set up an orthogonal projection matching the root widget
- GL::MatrixStack::projection() = GL::Matrix::ortho_bottomleft(200, 200);
- GL::MatrixStack::modelview() = GL::Matrix();
-
- // Font rendering requires blending
- GL::Bind bind_blend(GL::Blend::alpha());
-
- root.render();
-
- wnd.swap_buffers();