| 1 |
#ifndef SUPERIMPOSEDFRAME_HH |
| 2 |
#define SUPERIMPOSEDFRAME_HH |
| 3 |
|
| 4 |
#include "FrameSource.hh" |
| 5 |
|
| 6 |
namespace openmsx { |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
class SuperImposedFrame final : public FrameSource |
| 14 |
{ |
| 15 |
public: |
| 16 |
void init(const FrameSource* top, const FrameSource* bottom); |
| 17 |
|
| 18 |
[[nodiscard]] unsigned getLineWidth(unsigned line) const override; |
| 19 |
[[nodiscard]] std::span<const Pixel> getUnscaledLine( |
| 20 |
unsigned line, std::span<Pixel> helpBuf) const override; |
| 21 |
|
| 22 |
private: |
| 23 |
const FrameSource* top; |
| 24 |
const FrameSource* bottom; |
| 25 |
}; |
| 26 |
|
| 27 |
} |
| 28 |
|
| 29 |
#endif |