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

Function ui_DrawBox

ui/UIDraw.cpp:134–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void ui_DrawBox(ddgr_color color, int l, int t, int r, int b) {
135 if (color == TRANSPARENT_COLOR32)
136 return;
137 rend_SetFlatColor(color);
138 rend_DrawLine(l, t, r - 1, t);
139 rend_DrawLine(r - 1, t, r - 1, b - 1);
140 rend_DrawLine(l, b - 1, r - 1, b - 1);
141 rend_DrawLine(l, t, l, b - 1);
142}
143
144void ui_DrawLTBox(ddgr_color lt_col, ddgr_color rb_col, int l, int t, int r, int b) {
145 if (lt_col != TRANSPARENT_COLOR32) {

Callers 9

OnDrawMethod · 0.85
OnDrawMethod · 0.85
OnDrawMethod · 0.85
RenderMethod · 0.85
OnDrawMethod · 0.85
OnDrawMethod · 0.85
OnDrawMethod · 0.85
OnDrawMethod · 0.85
OnDrawMethod · 0.85

Calls 2

rend_SetFlatColorFunction · 0.50
rend_DrawLineFunction · 0.50

Tested by

no test coverage detected