openMSX
SuperImposedFrame.hh
Go to the documentation of this file.
1 #ifndef SUPERIMPOSEDFRAME_HH
2 #define SUPERIMPOSEDFRAME_HH
3 
4 #include "FrameSource.hh"
5 #include <memory>
6 
7 namespace openmsx {
8 
15 {
16 public:
17  static std::unique_ptr<SuperImposedFrame> create(
18  const SDL_PixelFormat& format);
19  void init(const FrameSource* top, const FrameSource* bottom);
20  virtual ~SuperImposedFrame() = default;
21 
22 protected:
23  explicit SuperImposedFrame(const SDL_PixelFormat& format);
24 
25  const FrameSource* top;
27 };
28 
29 } // namespace openmsx
30 
31 #endif
Interface for getting lines from a video frame.
Definition: FrameSource.hh:14
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
const FrameSource * bottom
SuperImposedFrame(const SDL_PixelFormat &format)
void format(SectorAccessibleDisk &disk, bool dos1)
Format the given disk (= a single partition).
virtual ~SuperImposedFrame()=default
static std::unique_ptr< SuperImposedFrame > create(const SDL_PixelFormat &format)
This class represents a frame that is the (per-pixel) alpha-blend of two other frames.
void init(const FrameSource *top, const FrameSource *bottom)