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

Function UnsafeDrawVerticalLine

Source/engine/render/primitive_render.cpp:120–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void UnsafeDrawVerticalLine(const Surface &out, Point from, int height, std::uint8_t colorIndex)
121{
122 auto *dst = &out[from];
123 const auto pitch = out.pitch();
124 while (height-- > 0) {
125 *dst = colorIndex;
126 dst += pitch;
127 }
128}
129
130void DrawHalfTransparentHorizontalLine(const Surface &out, Point from, int width, uint8_t colorIndex)
131{

Callers 2

DrawVerticalLineFunction · 0.85
DrawMonsterHealthBarFunction · 0.85

Calls 1

pitchMethod · 0.80

Tested by

no test coverage detected