openMSX
GLSnow.hh
Go to the documentation of this file.
1 #ifndef GLSNOW_HH
2 #define GLSNOW_HH
3 
4 #include "Layer.hh"
5 #include "GLUtil.hh"
6 
7 namespace openmsx {
8 
9 class Display;
10 
13 class GLSnow final : public Layer
14 {
15 public:
16  explicit GLSnow(Display& display);
17 
18  // Layer interface:
19  void paint(OutputSurface& output) override;
20 
21 private:
22  Display& display;
23  gl::Texture noiseTexture;
24 };
25 
26 } // namespace openmsx
27 
28 #endif
Represents the output window/screen of openMSX.
Definition: Display.hh:31
Most basic/generic texture: only contains a texture ID.
Definition: GLUtil.hh:35
Interface for display layers.
Definition: Layer.hh:11
Snow effect for background layer.
Definition: GLSnow.hh:13
A frame buffer where pixels can be written to.
GLSnow(Display &display)
Definition: GLSnow.cc:13
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
void paint(OutputSurface &output) override
Paint this layer.
Definition: GLSnow.cc:29