openMSX
V9990PxConverter.hh
Go to the documentation of this file.
1#ifndef V9990PXCONVERTER_HH
2#define V9990PXCONVERTER_HH
3
4#include <concepts>
5#include <span>
6
7namespace openmsx {
8
9class V9990;
10class V9990VRAM;
11
12template<std::unsigned_integral Pixel>
14{
15public:
16 V9990P1Converter(V9990& vdp, std::span<const Pixel, 64> palette64);
17
18 void convertLine(
19 std::span<Pixel> buf, unsigned displayX, unsigned displayY,
20 unsigned displayYA, unsigned displayYB, bool drawSprites);
21
22private:
23 V9990& vdp;
24 V9990VRAM& vram;
25 std::span<const Pixel, 64> palette64;
26};
27
28template<std::unsigned_integral Pixel>
30{
31public:
32 V9990P2Converter(V9990& vdp, std::span<const Pixel, 64> palette64);
33
34 void convertLine(
35 std::span<Pixel> buf, unsigned displayX, unsigned displayY,
36 unsigned displayYA, bool drawSprites);
37
38private:
39 V9990& vdp;
40 V9990VRAM& vram;
41 std::span<const Pixel, 64> palette64;
42};
43
44} // namespace openmsx
45
46#endif
void convertLine(std::span< Pixel > buf, unsigned displayX, unsigned displayY, unsigned displayYA, unsigned displayYB, bool drawSprites)
V9990P1Converter(V9990 &vdp, std::span< const Pixel, 64 > palette64)
void convertLine(std::span< Pixel > buf, unsigned displayX, unsigned displayY, unsigned displayYA, bool drawSprites)
V9990P2Converter(V9990 &vdp, std::span< const Pixel, 64 > palette64)
Video RAM for the V9990.
Definition: V9990VRAM.hh:16
Implementation of the Yamaha V9990 VDP as used in the GFX9000 cartridge by Sunrise.
Definition: V9990.hh:35
This file implemented 3 utility functions:
Definition: Autofire.cc:9