10template<std::
unsigned_
integral Pixel>
16template<std::
unsigned_
integral Pixel>
20 return pixelAccess->getLine<
Pixel>(y).
subspan(0, getWidth());
23template<std::
unsigned_
integral Pixel>
27 assert(buf.data() == pixelAccess->getLine<
Pixel>(y).data());
28 assert(buf.size() == getWidth());
33template<std::
unsigned_
integral Pixel>
38 auto dstLine = pixelAccess->getLine<
Pixel>(y).
subspan(0, getWidth());
39 memset(dstLine, color);
void fillLine(unsigned y, Pixel color) override
void releaseLine(unsigned y, std::span< Pixel > buf) override
DirectScalerOutput(SDLOutputSurface &output)
std::span< Pixel > acquireLine(unsigned y) override
A frame buffer where pixels can be written to.
This file implemented 3 utility functions:
constexpr auto subspan(Range &&range, size_t offset, size_t count=std::dynamic_extent)