SDLSnow.hh 464 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef SDLSNOW_HH
  2. #define SDLSNOW_HH
  3. #include "Layer.hh"
  4. namespace openmsx {
  5. class OutputSurface;
  6. class Display;
  7. /** Snow effect for background layer.
  8. */
  9. template <class Pixel>
  10. class SDLSnow final : public Layer
  11. {
  12. public:
  13. SDLSnow(OutputSurface& output, Display& display);
  14. // Layer interface:
  15. void paint(OutputSurface& output) override;
  16. private:
  17. Display& display;
  18. /** Gray values for noise.
  19. */
  20. Pixel gray[256];
  21. };
  22. } // namespace openmsx
  23. #endif