openMSX
|
Utility class to convert VRAM content to host pixels. More...
#include <V9990BitmapConverter.hh>
Public Types | |
using | Pixel = uint32_t |
Public Member Functions | |
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) const |
Convert a line of VRAM into host pixels. | |
void | setColorMode (V9990ColorMode colorMode_, V9990DisplayMode display) |
Set a different rendering mode. | |
Utility class to convert VRAM content to host pixels.
Definition at line 16 of file V9990BitmapConverter.hh.
using openmsx::V9990BitmapConverter::Pixel = uint32_t |
Definition at line 19 of file V9990BitmapConverter.hh.
openmsx::V9990BitmapConverter::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 | ||
) |
Definition at line 13 of file V9990BitmapConverter.cc.
References openmsx::B0, openmsx::PP, and setColorMode().
void openmsx::V9990BitmapConverter::convertLine | ( | std::span< Pixel > | dst, |
unsigned | x, | ||
unsigned | y, | ||
int | cursorY, | ||
bool | drawCursors | ||
) | const |
Convert a line of VRAM into host pixels.
Definition at line 460 of file V9990BitmapConverter.cc.
References openmsx::CursorInfo::color, openmsx::CursorInfo::dot(), openmsx::CursorInfo::doXor, openmsx::CursorInfo::isVisible(), openmsx::CursorInfo::pattern, openmsx::CursorInfo::shift(), subspan(), and xrange().
Referenced by openmsx::V9990SDLRasterizer::drawBxMode().
|
inline |
Set a different rendering mode.
Definition at line 34 of file V9990BitmapConverter.hh.
Referenced by openmsx::V9990SDLRasterizer::setColorMode(), openmsx::V9990SDLRasterizer::setDisplayMode(), and V9990BitmapConverter().