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

Function grtext_Printf

grtext/grtext.cpp:404–416  ·  view source on GitHub ↗

puts a formatted string in the text buffer

Source from the content-addressed store, hash-verified

402
403// puts a formatted string in the text buffer
404void grtext_Printf(int x, int y, const char *fmt, ...) {
405 std::va_list arglist;
406 int len;
407 char buf[512];
408
409 va_start(arglist, fmt);
410 len = std::vsnprintf(buf, 512, fmt, arglist);
411 va_end(arglist);
412 if (len < 0)
413 return;
414
415 grtext_Puts(x, y, buf);
416}
417
418// gets the current font
419int grtext_GetFont() { return Grtext_font; }

Callers 15

FontKernFunction · 0.85
FontCreateFunction · 0.85
FontViewFunction · 0.85
PaintPLRSinglePlayerTextFunction · 0.85
TCMainMenuRenderCallbackFunction · 0.85
TCSSSCallbackFunction · 0.85
RenderTextStaticFunction · 0.85
RenderTextTypeFunction · 0.85
RenderTextFadeFunction · 0.85
TCGoalsRenderCallbackFunction · 0.85
RenderPrimaryMonitorFunction · 0.85
RenderSecondaryMonitorFunction · 0.85

Calls 1

grtext_PutsFunction · 0.85

Tested by

no test coverage detected