openMSX
|
Snow effect for background layer. More...
#include <GLSnow.hh>
Public Member Functions | |
GLSnow (Display &display) | |
void | paint (OutputSurface &output) override |
Paint this layer. | |
Public Member Functions inherited from openmsx::Layer | |
virtual | ~Layer ()=default |
ZIndex | getZ () const |
Query the Z-index of this layer. | |
bool | isActive () const |
Coverage | getCoverage () const |
Query the coverage of this layer. | |
void | setDisplay (Display &display_) |
Store pointer to Display. | |
Additional Inherited Members | |
Public Types inherited from openmsx::Layer | |
enum class | ZIndex { BACKGROUND , MSX_PASSIVE , MSX_ACTIVE , OSDGUI , IMGUI } |
Determines stacking order of layers: layers with higher Z-indices are closer to the viewer. More... | |
enum class | Coverage { FULL , PARTIAL , NONE } |
Describes how much of the screen is currently covered by a particular layer. More... | |
Protected Member Functions inherited from openmsx::Layer | |
Layer (Coverage coverage_, ZIndex z_) | |
Construct a layer. | |
void | setCoverage (Coverage coverage_) |
Changes the current coverage of this layer. | |
void | setZ (ZIndex z) |
Changes the current Z-index of this layer. | |
|
explicit |
Definition at line 14 of file GLSnow.cc.
References ranges::generate(), and global_urng().
|
overridevirtual |
Paint this layer.
Implements openmsx::Layer.
Definition at line 50 of file GLSnow.cc.
References gl::Texture::bind(), gl::context, gl::matMxN< M, N, T >::data(), random_float(), and openmsx::Display::repaintDelayed().