* Render a string at the given position. * * @param px the x coordinate * @param py the y coordinate * @param text the string to render * @param font_colour the text colour to use */
| 701 | * @param font_colour the text colour to use |
| 702 | */ |
| 703 | void FTFontWrapper::render_string(unsigned int px, unsigned int py, |
| 704 | const formatted_string &text) |
| 705 | { |
| 706 | glmanager->reset_transform(); |
| 707 | FontBuffer m_font_buf(this); |
| 708 | m_font_buf.add(text, px, py); |
| 709 | m_font_buf.draw(); |
| 710 | } |
| 711 | |
| 712 | /** |
| 713 | * Render a string hovering above the given position, centred horizontally. |
no test coverage detected