MCPcopy Create free account
hub / github.com/crawl/crawl / render_string

Method render_string

crawl-ref/source/fontwrapper-ft.cc:703–710  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

701 * @param font_colour the text colour to use
702 */
703void 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.

Callers 5

draw_descMethod · 0.80
renderMethod · 0.80
send_lobby_htmlMethod · 0.80
send_game_linksMethod · 0.80
shutdownMethod · 0.80

Calls 3

reset_transformMethod · 0.80
addMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected