MCPcopy Create free account
hub / github.com/DentonW/DevIL / UpdateActiveList

Function UpdateActiveList

DevIL/src-ILU/src/ilu_region.cpp:195–210  ·  view source on GitHub ↗

Delete completed edges. Update 'xIntersect' field for others

Source from the content-addressed store, hash-verified

193
194// Delete completed edges. Update 'xIntersect' field for others
195void UpdateActiveList(ILint scan, Edge *active)
196{
197 Edge *q = active, *p = active->next;
198
199 while (p) {
200 if (scan >= p->yUpper) {
201 p = p->next;
202 DeleteAfter(q);
203 }
204 else {
205 p->xIntersect = p->xIntersect + p->dxPerScan;
206 q = p;
207 p = p->next;
208 }
209 }
210}
211
212
213void ResortActiveList(Edge *active)

Callers 1

iScanFillFunction · 0.85

Calls 1

DeleteAfterFunction · 0.85

Tested by

no test coverage detected