openMSX
Layer.cc
Go to the documentation of this file.
1#include "Layer.hh"
2
3#include "Display.hh"
4
5namespace openmsx {
6
8{
9 z = z_;
10 if (display) display->updateZ(*this);
11}
12
13
14// class ScopedLayerHider
15
17 : layer(layer_)
18 , originalCoverage(layer.getCoverage())
19{
21}
22
24{
25 layer.setCoverage(originalCoverage);
26}
27
28} // namespace openmsx
void updateZ(Layer &layer)
Definition Display.cc:402
Interface for display layers.
Definition Layer.hh:14
@ NONE
Layer is not visible, that is completely transparent.
void setZ(ZIndex z)
Changes the current Z-index of this layer.
Definition Layer.cc:7
ZIndex
Determines stacking order of layers: layers with higher Z-indices are closer to the viewer.
Definition Layer.hh:19
void setCoverage(Coverage coverage_)
Changes the current coverage of this layer.
Definition Layer.hh:73
ScopedLayerHider(Layer &layer)
Definition Layer.cc:16
This file implemented 3 utility functions:
Definition Autofire.cc:11