openMSX
DirectScalerOutput.hh
Go to the documentation of this file.
1 #ifndef DIRECTSCALEROUTPUT_HH
2 #define DIRECTSCALEROUTPUT_HH
3 
4 #include "ScalerOutput.hh"
5 #include "SDLOutputSurface.hh"
6 
7 namespace openmsx {
8 
9 template<typename Pixel>
10 class DirectScalerOutput final : public ScalerOutput<Pixel>
11 {
12 public:
13  explicit DirectScalerOutput(SDLOutputSurface& output);
14 
15  [[nodiscard]] unsigned getWidth() const override;
16  [[nodiscard]] unsigned getHeight() const override;
17  [[nodiscard]] Pixel* acquireLine(unsigned y) override;
18  void releaseLine(unsigned y, Pixel* buf) override;
19  void fillLine (unsigned y, Pixel color) override;
20 
21 private:
22  SDLOutputSurface& output;
23  SDLDirectPixelAccess pixelAccess;
24 };
25 
26 } // namespace openmsx
27 
28 #endif
void fillLine(unsigned y, Pixel color) override
DirectScalerOutput(SDLOutputSurface &output)
unsigned getWidth() const override
void releaseLine(unsigned y, Pixel *buf) override
Pixel * acquireLine(unsigned y) override
unsigned getHeight() const override
A frame buffer where pixels can be written to.
This file implemented 3 utility functions:
Definition: Autofire.cc:9
uint32_t Pixel