OXYGENHUB
◆ main openmsx / src / video / GLSnow.hh
453 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#ifndef GLSNOW_HH
2
#define GLSNOW_HH
3
4
#include "GLUtil.hh"
5
#include "Layer.hh"
6
7
#include <array>
8
9
namespace openmsx {
10
11
class Display;
12
13
/** Snow effect for background layer.
14
  */
15
class GLSnow final : public Layer
16
{
17
public:
18
	explicit GLSnow(Display& display);
19
20
	// Layer interface:
21
	void paint(OutputSurface& output) override;
22
23
private:
24
	Display& display;
25
	std::array<gl::BufferObject, 2> vbo;
26
	gl::Texture noiseTexture;
27
};
28
29
} // namespace openmsx
30
31
#endif