openMSX
Public Member Functions | List of all members
openmsx::SDLSnow< Pixel > Class Template Referencefinal

Snow effect for background layer. More...

#include <SDLSnow.hh>

Inheritance diagram for openmsx::SDLSnow< Pixel >:
Inheritance graph
[legend]
Collaboration diagram for openmsx::SDLSnow< Pixel >:
Collaboration graph
[legend]

Public Member Functions

 SDLSnow (OutputSurface &output, Display &display)
 
void paint (OutputSurface &output) override
 Paint this layer. More...
 
- Public Member Functions inherited from openmsx::Layer
virtual ~Layer ()=default
 
ZIndex getZ () const
 Query the Z-index of this layer. More...
 
Coverage getCoverage () const
 Query the coverage of this layer. More...
 
void setDisplay (LayerListener &display_)
 Store pointer to Display. More...
 

Additional Inherited Members

- Public Types inherited from openmsx::Layer
enum  ZIndex {
  Z_DUMMY = -1, Z_BACKGROUND = 0, Z_MSX_PASSIVE = 30, Z_MSX_ACTIVE = 40,
  Z_OSDGUI = 50, Z_CONSOLE = 100
}
 Determines stacking order of layers: layers with higher Z-indices are closer to the viewer. More...
 
enum  Coverage { COVER_FULL, COVER_PARTIAL, COVER_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_=COVER_NONE, ZIndex z_=Z_DUMMY)
 Construct a layer. More...
 
void setCoverage (Coverage coverage_)
 Changes the current coverage of this layer. More...
 
void setZ (ZIndex z)
 Changes the current Z-index of this layer. More...
 

Detailed Description

template<class Pixel>
class openmsx::SDLSnow< Pixel >

Snow effect for background layer.

Definition at line 14 of file SDLSnow.hh.

Constructor & Destructor Documentation

◆ SDLSnow()

template<class Pixel >
openmsx::SDLSnow< Pixel >::SDLSnow ( OutputSurface output,
Display display 
)

Definition at line 12 of file SDLSnow.cc.

References openmsx::OutputSurface::mapRGB255().

Member Function Documentation

◆ paint()

template<class Pixel >
void openmsx::SDLSnow< Pixel >::paint ( OutputSurface output)
overridevirtual

The documentation for this class was generated from the following files: