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

Function ui_DrawLine

ui/UIDraw.cpp:126–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124void ui_DrawSetAlpha(uint8_t alpha) { m_UIDrawAlpha = alpha; }
125
126void ui_DrawLine(ddgr_color color, int x1, int y1, int x2, int y2) {
127 if (color == TRANSPARENT_COLOR32)
128 return;
129
130 rend_SetFlatColor(color);
131 rend_DrawLine(x1, y1, x2, y2);
132}
133
134void ui_DrawBox(ddgr_color color, int l, int t, int r, int b) {
135 if (color == TRANSPARENT_COLOR32)

Callers 2

OnDrawMethod · 0.85
OnDrawMethod · 0.85

Calls 2

rend_SetFlatColorFunction · 0.50
rend_DrawLineFunction · 0.50

Tested by

no test coverage detected