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
openmsx::GLSnow::GLSnow
GLSnow(Display &display)
Definition: GLSnow.cc:13
gl::BufferObject
Definition: GLUtil.hh:441
gl::Texture
Most basic/generic texture: only contains a texture ID.
Definition: GLUtil.hh:41
openmsx::GLSnow::paint
void paint(OutputSurface &output) override
Paint this layer.
Definition: GLSnow.cc:51
Layer.hh
openmsx::Layer
Interface for display layers.
Definition: Layer.hh:12
openmsx::GLSnow
Snow effect for background layer.
Definition: GLSnow.hh:14
openmsx::Display
Represents the output window/screen of openMSX.
Definition: Display.hh:33
openmsx::OutputSurface
A frame buffer where pixels can be written to.
Definition: OutputSurface.hh:20
GLUtil.hh
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5