1#ifndef DIRECTSCALEROUTPUT_HH
2#define DIRECTSCALEROUTPUT_HH
11template<std::
unsigned_
integral Pixel>
17 [[nodiscard]]
unsigned getWidth()
const override {
31 [[nodiscard]] std::span<Pixel>
acquireLine(
unsigned y)
override;
32 void releaseLine(
unsigned y, std::span<Pixel> buf)
override;
37 std::optional<SDLDirectPixelAccess> pixelAccess;
void frameStop() override
void frameStart() override
void fillLine(unsigned y, Pixel color) override
void releaseLine(unsigned y, std::span< Pixel > buf) override
DirectScalerOutput(SDLOutputSurface &output)
unsigned getWidth() const override
std::span< Pixel > acquireLine(unsigned y) override
unsigned getHeight() const override
int getLogicalWidth() const
int getLogicalHeight() const
A frame buffer where pixels can be written to.
SDLDirectPixelAccess getDirectPixelAccess()
Return a SDLDirectPixelAccess object.
This file implemented 3 utility functions: