1#ifndef V9990BITMAPCONVERTER_HH
2#define V9990BITMAPCONVERTER_HH
17template<std::
unsigned_
integral Pixel>
23 std::span<const Pixel, 64> palette64, std::span<const int16_t, 64> palette64_32768,
24 std::span<const Pixel, 256> palette256, std::span<const int16_t, 256> palette256_32768,
25 std::span<const Pixel, 32768> palette32768);
29 void convertLine(std::span<Pixel> dst,
unsigned x,
unsigned y,
30 int cursorY,
bool drawCursors);
35 colorMode = colorMode_;
36 highRes = isHighRes(display);
56 std::span<const Pixel, 64>
const palette64;
57 std::span<const int16_t, 64>
const palette64_32768;
62 std::span<const Pixel, 256>
const palette256;
63 std::span<const int16_t, 256>
const palette256_32768;
68 std::span<const Pixel, 32768>
const palette32768;
Utility class to convert VRAM content to host pixels.
V9990BitmapConverter(V9990 &vdp, std::span< const Pixel, 64 > palette64, std::span< const int16_t, 64 > palette64_32768, std::span< const Pixel, 256 > palette256, std::span< const int16_t, 256 > palette256_32768, std::span< const Pixel, 32768 > palette32768)
void convertLine(std::span< Pixel > dst, unsigned x, unsigned y, int cursorY, bool drawCursors)
Convert a line of VRAM into host pixels.
void setColorMode(V9990ColorMode colorMode_, V9990DisplayMode display)
Set a different rendering mode.
Implementation of the Yamaha V9990 VDP as used in the GFX9000 cartridge by Sunrise.
This file implemented 3 utility functions: