- GL::pop_matrix();
-
- GL::push_matrix();
- if(draw_labels)
- {
- GL::push_matrix();
- GL::translate(-484, 361, 0);
- GL::scale_uniform(10);
- glColor4f(1.0, 1.0, 1.0, 1.0);
- n = 0;
- for(map<unsigned, GL::Color>::iterator i=port_colors.begin(); (i!=port_colors.end() && n<20); ++i, ++n)
- {
- font->draw_string(format("%d", i->first));
-
- GL::translate(0, -1.2, 0);
- }
- GL::pop_matrix();
- GL::Texture::unbind();
- }
- GL::pop_matrix();
-
- GL::push_matrix();
- GL::translate(-500, -360, 0);
- GL::scale_uniform(10);
- font->draw_string(format("%d hosts", hosts.size()+disabled_hosts.size()));
- GL::translate(0, -1.2, 0);
- font->draw_string(format("%.2f fps", fps));
- GL::pop_matrix();
- GL::Texture::unbind();
-
- glc->swap_buffers();