openMSX
SDLSnow.hh
Go to the documentation of this file.
1 #ifndef SDLSNOW_HH
2 #define SDLSNOW_HH
3 
4 #include "Layer.hh"
5 
6 namespace openmsx {
7 
8 class OutputSurface;
9 class Display;
10 
13 template <class Pixel>
14 class SDLSnow final : public Layer
15 {
16 public:
17  SDLSnow(OutputSurface& output, Display& display);
18 
19  // Layer interface:
20  void paint(OutputSurface& output) override;
21 
22 private:
23  Display& display;
24 
27  Pixel gray[256];
28 };
29 
30 } // namespace openmsx
31 
32 #endif
Represents the output window/screen of openMSX.
Definition: Display.hh:31
Interface for display layers.
Definition: Layer.hh:11
A frame buffer where pixels can be written to.
uint32_t Pixel
void paint(OutputSurface &output) override
Paint this layer.
Definition: SDLSnow.cc:23
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
Snow effect for background layer.
Definition: SDLSnow.hh:14
SDLSnow(OutputSurface &output, Display &display)
Definition: SDLSnow.cc:12