- GL::PushMatrix push_;
- GL::translate(width+5, height-10, 0);
- GL::scale_uniform(10);
- GL::Immediate imm((GL::COLOR4_UBYTE, GL::TEXCOORD2, GL::VERTEX2));
- imm.color(1.0f, 1.0f, 1.0f);
- netvis.get_font().draw_string(format("%d%c", value, suffix), imm);
- GL::translate(0, (height-12)*-0.05, 0);
- netvis.get_font().draw_string(format("%g%c", value*0.5, suffix), imm);
- GL::translate(0, (height-12)*-0.05, 0);
- netvis.get_font().draw_string(format("0%c", suffix), imm);
+ GL::MatrixStack::Push push_(GL::MatrixStack::modelview());
+ GL::MatrixStack::modelview() *= GL::Matrix::translation(width+5, height-10, 0);
+ GL::MatrixStack::modelview() *= GL::Matrix::scaling(10);
+ netvis.get_font().draw_string(format("%d%c", value, suffix));
+ GL::MatrixStack::modelview() *= GL::Matrix::translation(0, (height-12)*-0.05, 0);
+ netvis.get_font().draw_string(format("%g%c", value*0.5, suffix));
+ GL::MatrixStack::modelview() *= GL::Matrix::translation(0, (height-12)*-0.05, 0);
+ netvis.get_font().draw_string(format("0%c", suffix));