openMSX
SDLSnow.hh
Go to the documentation of this file.
1#ifndef SDLSNOW_HH
2#define SDLSNOW_HH
3
4#include "Layer.hh"
5#include <array>
6#include <concepts>
7
8namespace openmsx {
9
10class OutputSurface;
11class Display;
12
15template<std::unsigned_integral Pixel>
16class SDLSnow final : public Layer
17{
18public:
19 SDLSnow(OutputSurface& output, Display& display);
20
21 // Layer interface:
22 void paint(OutputSurface& output) override;
23
24private:
25 Display& display;
26
29 std::array<Pixel, 256> gray;
30};
31
32} // namespace openmsx
33
34#endif
Represents the output window/screen of openMSX.
Definition: Display.hh:33
Interface for display layers.
Definition: Layer.hh:12
A frame buffer where pixels can be written to.
Snow effect for background layer.
Definition: SDLSnow.hh:17
void paint(OutputSurface &output) override
Paint this layer.
Definition: SDLSnow.cc:24
SDLSnow(OutputSurface &output, Display &display)
Definition: SDLSnow.cc:13
This file implemented 3 utility functions:
Definition: Autofire.cc:9