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

Method line

2dlib/pen.cpp:135–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133// draws a clipped line
134
135void grViewport::line(ddgr_color color, int x1, int y1, int x2, int y2) {
136 int xa, ya, xb, yb;
137 ASSERT(vp_Locked);
138
139 xa = global_x(x1);
140 ya = global_y(y1);
141 xb = global_x(x2);
142 yb = global_y(y2);
143
144 rend_SetFlatColor(color);
145 rend_DrawLine(x1, y1, x2, y2);
146}
147
148void grViewport::rect(ddgr_color color, int l, int t, int r, int b) {
149 ASSERT(vp_Locked);

Callers 7

OpenThemeFileMethod · 0.45
LoadThemeMethod · 0.45
UpdateTextureViewsMethod · 0.45
UpdateTextureViewMethod · 0.45
UpdateMegacellViewMethod · 0.45
DrawWireframeListFunction · 0.45
DrawRectMethod · 0.45

Calls 2

rend_SetFlatColorFunction · 0.50
rend_DrawLineFunction · 0.50

Tested by 1

DrawWireframeListFunction · 0.36