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
openmsx::SDLSnow::SDLSnow
SDLSnow(OutputSurface &output, Display &display)
Definition: SDLSnow.cc:13
Layer.hh
openmsx::Pixel
uint32_t Pixel
Definition: GLHQLiteScaler.cc:93
openmsx::Layer
Interface for display layers.
Definition: Layer.hh:11
openmsx::SDLSnow::paint
void paint(OutputSurface &output) override
Paint this layer.
Definition: SDLSnow.cc:24
openmsx::Display
Represents the output window/screen of openMSX.
Definition: Display.hh:31
openmsx::OutputSurface
A frame buffer where pixels can be written to.
Definition: OutputSurface.hh:19
openmsx::SDLSnow
Snow effect for background layer.
Definition: SDLSnow.hh:14
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5