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

Function grtext_SetFlags

grtext/grtext.cpp:371–384  ·  view source on GitHub ↗

toggles text saturation

Source from the content-addressed store, hash-verified

369
370// toggles text saturation
371void grtext_SetFlags(int flags) {
372 struct {
373 char op;
374 int flags;
375 } cmd;
376
377 ASSERT((Grtext_ptr + sizeof(cmd)) < GRTEXT_BUFLEN);
378
379 cmd.op = GRTEXTOP_SETFLAGS;
380 cmd.flags = flags;
381
382 memcpy(&Grtext_buffer[Grtext_ptr], &cmd, sizeof(cmd));
383 Grtext_ptr += sizeof(cmd);
384}
385
386// sets the font for text
387void grtext_SetFont(int font_handle) {

Callers 14

ui_DrawStringFunction · 0.85
ui_DrawCenteredStringFunction · 0.85
PaintPLRSinglePlayerTextFunction · 0.85
HudDisplayRouterFunction · 0.85
RenderHUDTextFlagsFunction · 0.85
mve_PutsFunction · 0.85
RenderPrimaryMonitorFunction · 0.85
RenderSecondaryMonitorFunction · 0.85
RenderSmallWindowFunction · 0.85
RenderHUDInputMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected