openMSX
Public Types | Public Member Functions | List of all members
openmsx::V9990BitmapConverter Class Reference

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.
 

Detailed Description

Utility class to convert VRAM content to host pixels.

Definition at line 16 of file V9990BitmapConverter.hh.

Member Typedef Documentation

◆ Pixel

Definition at line 19 of file V9990BitmapConverter.hh.

Constructor & Destructor Documentation

◆ V9990BitmapConverter()

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().

Member Function Documentation

◆ convertLine()

void openmsx::V9990BitmapConverter::convertLine ( std::span< Pixel dst,
unsigned  x,
unsigned  y,
int  cursorY,
bool  drawCursors 
) const

◆ setColorMode()

void openmsx::V9990BitmapConverter::setColorMode ( V9990ColorMode  colorMode_,
V9990DisplayMode  display 
)
inline

The documentation for this class was generated from the following files: