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

Function grtext_SetAlpha

grtext/grtext.cpp:352–365  ·  view source on GitHub ↗

sets the alpha value for text

Source from the content-addressed store, hash-verified

350
351// sets the alpha value for text
352void grtext_SetAlpha(uint8_t alpha) {
353 struct {
354 char op;
355 uint8_t alpha;
356 } cmd;
357
358 ASSERT((Grtext_ptr + sizeof(cmd)) < GRTEXT_BUFLEN);
359 cmd.op = GRTEXTOP_SETALPHA;
360 cmd.alpha = alpha;
361 Grtext_alpha = alpha;
362
363 memcpy(&Grtext_buffer[Grtext_ptr], &cmd, sizeof(cmd));
364 Grtext_ptr += sizeof(cmd);
365}
366
367// gets font alpha
368uint8_t grtext_GetAlpha() { return Grtext_alpha; }

Callers 15

FontKernFunction · 0.85
ui_DrawStringFunction · 0.85
ui_DrawCenteredStringFunction · 0.85
RenderHUDItemsFunction · 0.85
PaintPLRSinglePlayerTextFunction · 0.85
HudDisplayRouterFunction · 0.85
RenderHUDTextFlagsFunction · 0.85
TCMainMenuRenderCallbackFunction · 0.85
TCSSSCallbackFunction · 0.85
RenderTextStaticFunction · 0.85
RenderTextTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected