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#include <array>
7
8namespace openmsx {
9
10class Display;
11
14class GLSnow final : public Layer
15{
16public:
17 explicit GLSnow(Display& display);
18
19 // Layer interface:
20 void paint(OutputSurface& output) override;
21
22private:
23 Display& display;
24 std::array<gl::BufferObject, 2> vbo;
25 gl::Texture noiseTexture;
26};
27
28} // namespace openmsx
29
30#endif
Most basic/generic texture: only contains a texture ID.
Definition GLUtil.hh:36
Represents the output window/screen of openMSX.
Definition Display.hh:32
Snow effect for background layer.
Definition GLSnow.hh:15
void paint(OutputSurface &output) override
Paint this layer.
Definition GLSnow.cc:49
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