#ifndef GLSNOW_HH
#define GLSNOW_HH

#include "GLUtil.hh"
#include "Layer.hh"

#include <array>

namespace openmsx {

class Display;

/** Snow effect for background layer.
  */
class GLSnow final : public Layer
{
public:
	explicit GLSnow(Display& display);

	// Layer interface:
	void paint(OutputSurface& output) override;

private:
	Display& display;
	std::array<gl::BufferObject, 2> vbo;
	gl::Texture noiseTexture;
};

} // namespace openmsx

#endif
