1#ifndef V9990SDLRASTERIZER_HH
2#define V9990SDLRASTERIZER_HH
35 std::unique_ptr<PostProcessor> postProcessor);
44 [[nodiscard]]
bool isActive()
override;
45 void reset()
override;
47 void frameEnd(EmuTime::param time)
override;
50 void setPalette(
int index,
byte r,
byte g,
byte b,
bool ys)
override;
52 void drawBorder(
int fromX,
int fromY,
int limitX,
int limitY)
override;
53 void drawDisplay(
int fromX,
int fromY,
int toX,
int toY,
55 int displayY,
int displayYA,
int displayYB)
override;
63 void drawP1Mode(
int fromX,
int fromY,
int displayX,
64 int displayY,
int displayYA,
int displayYB,
65 int displayWidth,
int displayHeight,
bool drawSprites);
66 void drawP2Mode(
int fromX,
int fromY,
int displayX,
67 int displayY,
int displayYA,
68 int displayWidth,
int displayHeight,
bool drawSprites);
69 void drawBxMode(
int fromX,
int fromY,
int displayX,
70 int displayY,
int displayYA,
71 int displayWidth,
int displayHeight,
bool drawSprites);
79 static constexpr int SCREEN_WIDTH = 320;
83 static constexpr int SCREEN_HEIGHT = 240;
99 std::unique_ptr<RawFrame> workFrame;
123 std::array<Pixel, 32768> palette32768;
127 std::array<Pixel, 256> palette256;
128 std::array<int16_t, 256> palette256_32768;
134 std::array<Pixel, 64> palette64;
135 std::array<int16_t, 64> palette64_32768;
141 const std::unique_ptr<PostProcessor> postProcessor;
Represents the output window/screen of openMSX.
Generic Gang-of-Four Observer class, templatized edition.
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...
Class containing all settings for renderers.
Utility class to convert VRAM content to host pixels.
If this seems awfully familiar, take a look at Rasterizer.hh It's virtually the same class,...
V9990SDLRasterizer & operator=(const V9990SDLRasterizer &)=delete
void setPalette(int index, byte r, byte g, byte b, bool ys) override
Set RGB values for a palette entry.
void setDisplayMode(V9990DisplayMode displayMode) override
The display mode determines the screens geometry and how V9990 pixels are mapped to pixels on screen.
void drawBorder(int fromX, int fromY, int limitX, int limitY) override
Render a rectangle of border pixels on the host screen.
V9990SDLRasterizer & operator=(V9990SDLRasterizer &&)=delete
void drawP1Mode(int fromX, int fromY, int displayX, int displayY, int displayYA, int displayYB, int displayWidth, int displayHeight, bool drawSprites)
void preCalcPalettes()
Fill the palettes.
PostProcessor * getPostProcessor() const override
See V9990::getPostProcessor().
bool isActive() override
Will the output of this Rasterizer be displayed? There is no point in producing a frame that will not...
void setColorMode(V9990ColorMode colorMode) override
The color mode determines how the V9990 VRAM data gets converted to pixel colors.
V9990SDLRasterizer(const V9990SDLRasterizer &)=delete
void frameStart() override
Indicates the start of a new frame.
void update(const Setting &setting) noexcept override
void drawBxMode(int fromX, int fromY, int displayX, int displayY, int displayYA, int displayWidth, int displayHeight, bool drawSprites)
void drawP2Mode(int fromX, int fromY, int displayX, int displayY, int displayYA, int displayWidth, int displayHeight, bool drawSprites)
void setSuperimpose(bool enabled) override
Is superimpose enabled?
bool isRecording() const override
Is video recording active?
~V9990SDLRasterizer() override
void drawDisplay(int fromX, int fromY, int toX, int toY, int displayX, int displayY, int displayYA, int displayYB) override
Render a rectangle of display pixels on the host screen.
void frameEnd(EmuTime::param time) override
Indicates the end of the current frame.
V9990SDLRasterizer(V9990SDLRasterizer &&)=delete
void reset() override
Resynchronize with VDP - flush caches etc.
Implementation of the Yamaha V9990 VDP as used in the GFX9000 cartridge by Sunrise.
This file implemented 3 utility functions: