openMSX
video
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
8
namespace
openmsx
{
9
10
class
Display;
11
14
class
GLSnow
final :
public
Layer
15
{
16
public
:
17
explicit
GLSnow
(
Display
& display);
18
19
// Layer interface:
20
void
paint
(
OutputSurface
& output)
override
;
21
22
private
:
23
Display
& display;
24
std::array<gl::BufferObject, 2> vbo;
25
gl::Texture
noiseTexture;
26
};
27
28
}
// namespace openmsx
29
30
#endif
GLUtil.hh
Layer.hh
gl::Texture
Most basic/generic texture: only contains a texture ID.
Definition:
GLUtil.hh:40
openmsx::Display
Represents the output window/screen of openMSX.
Definition:
Display.hh:33
openmsx::GLSnow
Snow effect for background layer.
Definition:
GLSnow.hh:15
openmsx::GLSnow::paint
void paint(OutputSurface &output) override
Paint this layer.
Definition:
GLSnow.cc:49
openmsx::GLSnow::GLSnow
GLSnow(Display &display)
Definition:
GLSnow.cc:13
openmsx::Layer
Interface for display layers.
Definition:
Layer.hh:12
openmsx::OutputSurface
A frame buffer where pixels can be written to.
Definition:
OutputSurface.hh:21
openmsx
This file implemented 3 utility functions:
Definition:
Autofire.cc:9
Generated on Mon Sep 18 2023 23:13:11 for openMSX by
1.9.4