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

Function RenderHUDTextFlagsNoFormat

Descent3/huddisplay.cpp:901–922  ·  view source on GitHub ↗

renders text, scaled, alphaed, saturated,

Source from the content-addressed store, hash-verified

899
900// renders text, scaled, alphaed, saturated,
901void RenderHUDTextFlagsNoFormat(int flags, ddgr_color col, uint8_t alpha, int sat_count, int x, int y, const char *str) {
902 int i;
903
904 grtext_SetAlpha(alpha);
905
906 if (sat_count)
907 grtext_SetFlags(GRTEXTFLAG_SATURATE);
908 else
909 grtext_SetFlags(0);
910
911 grtext_SetColor(col);
912
913 x = HUD_X(x);
914 y = HUD_Y(y);
915
916 for (i = 0; i < sat_count + 1; i++) {
917 if (flags & HUDTEXT_CENTERED)
918 grtext_CenteredPrintf(0, y, str);
919 else
920 grtext_Puts(x, y, str);
921 }
922}
923
924// renders text, scaled, alphaed, saturated,
925void RenderHUDTextFlags(int flags, ddgr_color col, uint8_t alpha, int sat_count, int x, int y, const char *fmt, ...) {

Callers 3

HudDisplayRouterFunction · 0.85
RenderHUDTextFunction · 0.85
RenderHUDTimerFunction · 0.85

Calls 5

grtext_SetAlphaFunction · 0.85
grtext_SetFlagsFunction · 0.85
grtext_SetColorFunction · 0.85
grtext_CenteredPrintfFunction · 0.85
grtext_PutsFunction · 0.85

Tested by

no test coverage detected