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

Function grtext_SetFancyColor

grtext/grtext.cpp:336–349  ·  view source on GitHub ↗

sets fancy color for text

Source from the content-addressed store, hash-verified

334
335// sets fancy color for text
336void grtext_SetFancyColor(ddgr_color col1, ddgr_color col2, ddgr_color col3, ddgr_color col4) {
337 struct {
338 char op;
339 ddgr_color col;
340 } cmd;
341
342 ASSERT((Grtext_ptr + sizeof(cmd)) < GRTEXT_BUFLEN);
343
344 cmd.op = GRTEXTOP_FANCYCOLOR;
345 cmd.col = col1;
346
347 memcpy(&Grtext_buffer[Grtext_ptr], &cmd, sizeof(cmd));
348 Grtext_ptr += sizeof(cmd);
349}
350
351// sets the alpha value for text
352void grtext_SetAlpha(uint8_t alpha) {

Callers 2

RenderPrimaryMonitorFunction · 0.85
RenderSecondaryMonitorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected