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

Method rect

2dlib/pen.cpp:148–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148void grViewport::rect(ddgr_color color, int l, int t, int r, int b) {
149 ASSERT(vp_Locked);
150
151 l = global_x(l);
152 t = global_y(t);
153 r = global_x(r);
154 b = global_y(b);
155
156 rend_SetFlatColor(color);
157 rend_DrawLine(l, t, r, t);
158 rend_DrawLine(r, t, r, b);
159 rend_DrawLine(l, b, r, b);
160 rend_DrawLine(l, t, l, b);
161}
162
163void grViewport::fillrect(ddgr_color color, int l, int t, int r, int b) {
164 ASSERT(vp_Locked);

Callers 1

ListBoxProcMethod · 0.80

Calls 2

rend_SetFlatColorFunction · 0.50
rend_DrawLineFunction · 0.50

Tested by

no test coverage detected