MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / AppendOutlineRowSolidRuns

Function AppendOutlineRowSolidRuns

Source/engine/render/clx_render.cpp:279–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279void AppendOutlineRowSolidRuns(uint8_t x, uint8_t w, OutlineRowSolidRuns &solidRuns)
280{
281 if (solidRuns.empty() || solidRuns.back().second != x) {
282 solidRuns.emplace_back(x, x + w);
283 } else {
284 solidRuns.back().second = static_cast<uint8_t>(x + w);
285 }
286}
287
288template <bool SkipColorIndexZero>
289void GetOutline(ClxSprite sprite, OutlinePixels &result) // NOLINT(readability-function-cognitive-complexity)

Callers 1

GetOutlineFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected