MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ui_DrawString

Function ui_DrawString

ui/UIDraw.cpp:268–274  ·  view source on GitHub ↗

draws a line of text.

Source from the content-addressed store, hash-verified

266
267// draws a line of text.
268void ui_DrawString(ddgr_color col, int x, int y, const char *str) {
269 grtext_SetFlags(m_UITextFlags);
270 grtext_SetAlpha(m_UICharAlpha);
271 grtext_SetColor(col);
272 grtext_Puts(x, y, str);
273 grtext_Flush();
274}
275
276void ui_DrawCenteredString(ddgr_color col, int xoff, int y, const char *str) {
277 grtext_SetFlags(m_UITextFlags);

Callers 5

OnDrawMethod · 0.85
OnDrawMethod · 0.85
DrawTextMethod · 0.85
drawMethod · 0.85
OnDrawMethod · 0.85

Calls 5

grtext_SetFlagsFunction · 0.85
grtext_SetAlphaFunction · 0.85
grtext_SetColorFunction · 0.85
grtext_PutsFunction · 0.85
grtext_FlushFunction · 0.85

Tested by

no test coverage detected