- GL::pop_matrix();
-
- GL::push_matrix();
- if(draw_labels)
- {
- GL::push_matrix();
- GL::translate(-484, 361, 0);
- GL::scale_uniform(10);
- n = 0;
- for(map<unsigned, Port>::iterator i=ports.begin(); (i!=ports.end() && n<50); ++i, ++n)
- {
- GL::Immediate imm2((GL::COLOR4_UBYTE, GL::TEXCOORD2, GL::VERTEX2));
- imm.color(1.0f, 1.0f, 1.0f);
- font->draw_string(i->second.get_name(), imm2);
-
- 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();
-
- wnd->swap_buffers();