openMSX
V9990PxConverter.hh
Go to the documentation of this file.
1 #ifndef V9990PXCONVERTER_HH
2 #define V9990PXCONVERTER_HH
3 
4 #include <concepts>
5 
6 namespace openmsx {
7 
8 class V9990;
9 class V9990VRAM;
10 
11 template<std::unsigned_integral Pixel>
13 {
14 public:
15  V9990P1Converter(V9990& vdp, const Pixel* palette64);
16 
17  void convertLine(
18  Pixel* linePtr, unsigned displayX, unsigned displayWidth,
19  unsigned displayY, unsigned displayYA, unsigned displayYB,
20  bool drawSprites);
21 
22 private:
23  V9990& vdp;
24  V9990VRAM& vram;
25  const Pixel* const palette64;
26 };
27 
28 template<std::unsigned_integral Pixel>
30 {
31 public:
32  V9990P2Converter(V9990& vdp, const Pixel* palette64);
33 
34  void convertLine(
35  Pixel* linePtr, unsigned displayX, unsigned displayWidth,
36  unsigned displayY, unsigned displayYA, bool drawSprites);
37 
38 private:
39  V9990& vdp;
40  V9990VRAM& vram;
41  const Pixel* const palette64;
42 };
43 
44 } // namespace openmsx
45 
46 #endif
V9990P1Converter(V9990 &vdp, const Pixel *palette64)
void convertLine(Pixel *linePtr, unsigned displayX, unsigned displayWidth, unsigned displayY, unsigned displayYA, unsigned displayYB, bool drawSprites)
V9990P2Converter(V9990 &vdp, const Pixel *palette64)
void convertLine(Pixel *linePtr, unsigned displayX, unsigned displayWidth, unsigned displayY, unsigned displayYA, bool drawSprites)
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:32
This file implemented 3 utility functions:
Definition: Autofire.cc:9
uint32_t Pixel