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::BufferObject vbo[2];
24  gl::Texture noiseTexture;
25 };
26 
27 } // namespace openmsx
28 
29 #endif
Most basic/generic texture: only contains a texture ID.
Definition: GLUtil.hh:40
Represents the output window/screen of openMSX.
Definition: Display.hh:33
Snow effect for background layer.
Definition: GLSnow.hh:14
void paint(OutputSurface &output) override
Paint this layer.
Definition: GLSnow.cc:49
GLSnow(Display &display)
Definition: GLSnow.cc:13
Interface for display layers.
Definition: Layer.hh:12
A frame buffer where pixels can be written to.
This file implemented 3 utility functions:
Definition: Autofire.cc:9