openMSX
DummyRenderer.hh
Go to the documentation of this file.
1#ifndef DUMMYRENDERER_HH
2#define DUMMYRENDERER_HH
3
4#include "Renderer.hh"
5#include "Layer.hh"
6
7namespace openmsx {
8
11class DummyRenderer final : public Renderer, public Layer
12{
13public:
15
16 // Renderer interface:
17 [[nodiscard]] PostProcessor* getPostProcessor() const override;
18 void reInit() override;
19 void frameStart(EmuTime::param time) override;
20 void frameEnd(EmuTime::param time) override;
21 void updateTransparency(bool enabled, EmuTime::param time) override;
22 void updateSuperimposing(const RawFrame* videoSource, EmuTime::param time) override;
23 void updateForegroundColor(byte color, EmuTime::param time) override;
24 void updateBackgroundColor(byte color, EmuTime::param time) override;
25 void updateBlinkForegroundColor(byte color, EmuTime::param time) override;
26 void updateBlinkBackgroundColor(byte color, EmuTime::param time) override;
27 void updateBlinkState(bool enabled, EmuTime::param time) override;
28 void updatePalette(unsigned index, int grb, EmuTime::param time) override;
29 void updateVerticalScroll(int scroll, EmuTime::param time) override;
30 void updateHorizontalScrollLow(byte scroll, EmuTime::param time) override;
31 void updateHorizontalScrollHigh(byte scroll, EmuTime::param time) override;
32 void updateBorderMask(bool masked, EmuTime::param time) override;
33 void updateMultiPage(bool multiPage, EmuTime::param time) override;
34 void updateHorizontalAdjust(int adjust, EmuTime::param time) override;
35 void updateDisplayEnabled(bool enabled, EmuTime::param time) override;
36 void updateDisplayMode(DisplayMode mode, EmuTime::param time) override;
37 void updateNameBase(unsigned addr, EmuTime::param time) override;
38 void updatePatternBase(unsigned addr, EmuTime::param time) override;
39 void updateColorBase(unsigned addr, EmuTime::param time) override;
40 void updateSpritesEnabled(bool enabled, EmuTime::param time) override;
41 void updateVRAM(unsigned offset, EmuTime::param time) override;
42 void updateWindow(bool enabled, EmuTime::param time) override;
43
44 // Layer interface:
45 void paint(OutputSurface& output) override;
46};
47
48} // namespace openmsx
49
50#endif
Represents a VDP display mode.
void updateTransparency(bool enabled, EmuTime::param time) override
Informs the renderer of a VDP transparency enable/disable change.
void updateHorizontalAdjust(int adjust, EmuTime::param time) override
Informs the renderer of a horizontal adjust change.
void updateForegroundColor(byte color, EmuTime::param time) override
Informs the renderer of a VDP foreground color change.
void updateVerticalScroll(int scroll, EmuTime::param time) override
Informs the renderer of a vertical scroll change.
void frameStart(EmuTime::param time) override
Signals the start of a new frame.
void updateVRAM(unsigned offset, EmuTime::param time) override
Informs the observer of a change in VRAM contents.
void reInit() override
Reinitialize Renderer state.
void updatePalette(unsigned index, int grb, EmuTime::param time) override
Informs the renderer of a VDP palette change.
void frameEnd(EmuTime::param time) override
Signals the end of a frame.
void updateBlinkState(bool enabled, EmuTime::param time) override
Informs the renderer of a VDP blinking state change.
void updateDisplayMode(DisplayMode mode, EmuTime::param time) override
Informs the renderer of a VDP display mode change.
void updateHorizontalScrollLow(byte scroll, EmuTime::param time) override
Informs the renderer of a horizontal scroll change: the lower scroll value has changed.
void updateWindow(bool enabled, EmuTime::param time) override
Informs the observer that the entire VRAM window will change.
void updateHorizontalScrollHigh(byte scroll, EmuTime::param time) override
Informs the renderer of a horizontal scroll change: the higher scroll value has changed.
void updateSpritesEnabled(bool enabled, EmuTime::param time) override
Informs the renderer of a VDP sprites enabled change.
PostProcessor * getPostProcessor() const override
See VDP::getPostProcessor.
void updateBackgroundColor(byte color, EmuTime::param time) override
Informs the renderer of a VDP background color change.
void updateMultiPage(bool multiPage, EmuTime::param time) override
Informs the renderer of a horizontal scroll change: the multi page setting has changed.
void paint(OutputSurface &output) override
Paint this layer.
void updatePatternBase(unsigned addr, EmuTime::param time) override
Informs the renderer of a pattern table base address change.
void updateSuperimposing(const RawFrame *videoSource, EmuTime::param time) override
Informs the renderer of a VDP superimposing change.
void updateNameBase(unsigned addr, EmuTime::param time) override
Informs the renderer of a name table base address change.
void updateColorBase(unsigned addr, EmuTime::param time) override
Informs the renderer of a color table base address change.
void updateBlinkBackgroundColor(byte color, EmuTime::param time) override
Informs the renderer of a VDP blink background color change.
void updateBlinkForegroundColor(byte color, EmuTime::param time) override
Informs the renderer of a VDP blink foreground color change.
void updateDisplayEnabled(bool enabled, EmuTime::param time) override
Informs the renderer of a VDP display enabled change.
void updateBorderMask(bool masked, EmuTime::param time) override
Informs the renderer of a horizontal scroll change: the border mask has been enabled/disabled.
Interface for display layers.
Definition Layer.hh:14
Coverage
Describes how much of the screen is currently covered by a particular layer.
Definition Layer.hh:31
@ NONE
Layer is not visible, that is completely transparent.
ZIndex
Determines stacking order of layers: layers with higher Z-indices are closer to the viewer.
Definition Layer.hh:19
A frame buffer where pixels can be written to.
A post processor builds the frame that is displayed from the MSX frame, while applying effects such a...
A video frame as output by the VDP scanline conversion unit, before any postprocessing filters are ap...
Definition RawFrame.hh:16
Abstract base class for Renderers.
Definition Renderer.hh:24
This file implemented 3 utility functions:
Definition Autofire.cc:11