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:
14 // Renderer interface:
15 [[nodiscard]] PostProcessor* getPostProcessor() const override;
16 void reInit() override;
17 void frameStart(EmuTime::param time) override;
18 void frameEnd(EmuTime::param time) override;
19 void updateTransparency(bool enabled, EmuTime::param time) override;
20 void updateSuperimposing(const RawFrame* videoSource, EmuTime::param time) override;
21 void updateForegroundColor(int color, EmuTime::param time) override;
22 void updateBackgroundColor(int color, EmuTime::param time) override;
23 void updateBlinkForegroundColor(int color, EmuTime::param time) override;
24 void updateBlinkBackgroundColor(int color, EmuTime::param time) override;
25 void updateBlinkState(bool enabled, EmuTime::param time) override;
26 void updatePalette(unsigned index, int grb, EmuTime::param time) override;
27 void updateVerticalScroll(int scroll, EmuTime::param time) override;
28 void updateHorizontalScrollLow(byte scroll, EmuTime::param time) override;
29 void updateHorizontalScrollHigh(byte scroll, EmuTime::param time) override;
30 void updateBorderMask(bool masked, EmuTime::param time) override;
31 void updateMultiPage(bool multiPage, EmuTime::param time) override;
32 void updateHorizontalAdjust(int adjust, EmuTime::param time) override;
33 void updateDisplayEnabled(bool enabled, EmuTime::param time) override;
34 void updateDisplayMode(DisplayMode mode, EmuTime::param time) override;
35 void updateNameBase(unsigned addr, EmuTime::param time) override;
36 void updatePatternBase(unsigned addr, EmuTime::param time) override;
37 void updateColorBase(unsigned addr, EmuTime::param time) override;
38 void updateSpritesEnabled(bool enabled, EmuTime::param time) override;
39 void updateVRAM(unsigned offset, EmuTime::param time) override;
40 void updateWindow(bool enabled, EmuTime::param time) override;
41
42 // Layer interface:
43 void paint(OutputSurface& output) override;
44};
45
46} // namespace openmsx
47
48#endif
Represents a VDP display mode.
Definition: DisplayMode.hh:16
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 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 updateBlinkForegroundColor(int color, EmuTime::param time) override
Informs the renderer of a VDP blink foreground color change.
void updateBlinkBackgroundColor(int color, EmuTime::param time) override
Informs the renderer of a VDP blink background color change.
void updateForegroundColor(int color, EmuTime::param time) override
Informs the renderer of a VDP foreground color change.
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.
Definition: DummyRenderer.cc:6
void updateMultiPage(bool multiPage, EmuTime::param time) override
Informs the renderer of a horizontal scroll change: the multi page setting has changed.
void updateBackgroundColor(int color, EmuTime::param time) override
Informs the renderer of a VDP background color change.
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 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:12
A frame buffer where pixels can be written to.
Abstract base class for post processors.
A video frame as output by the VDP scanline conversion unit, before any postprocessing filters are ap...
Definition: RawFrame.hh:15
Abstract base class for Renderers.
Definition: Renderer.hh:24
This file implemented 3 utility functions:
Definition: Autofire.cc:9