measure.render();
}
- GL::matrix_mode(GL::PROJECTION);
- GL::load_identity();
- GL::ortho_bottomleft(window.get_width(), window.get_height());
- GL::matrix_mode(GL::MODELVIEW);
- GL::load_identity();
-
- GL::Bind bind_blend(GL::Blend::alpha());
root.render();
- // XXX Should fix GLtk so these would not be needed
- GL::Texture::unbind();
+ // XXX Should fix GLtk so this would not be needed
glColor3f(1.0, 1.0, 1.0);
}
arrow_mesh.draw();
}
- const GLtk::Geometry &rgeom = root->get_geometry();
- GL::matrix_mode(GL::PROJECTION);
- GL::load_identity();
- GL::ortho_bottomleft(rgeom.w, rgeom.h);
- GL::matrix_mode(GL::MODELVIEW);
- GL::load_identity();
-
- {
- GL::Bind blend(GL::Blend::alpha());
- root->render();
- GL::Texture::unbind();
- }
+ root->render();
window.swap_buffers();
}