openMSX
Public Member Functions | List of all members
openmsx::CharacterConverter< Pixel > Class Template Reference

Utility class for converting VRAM contents to host pixels. More...

#include <CharacterConverter.hh>

Public Member Functions

 CharacterConverter (VDP &vdp, const Pixel *palFg, const Pixel *palBg)
 Create a new bitmap scanline converter. More...
 
void convertLine (Pixel *linePtr, int line)
 Convert a line of V9938 VRAM to 512 host pixels. More...
 
void setDisplayMode (DisplayMode mode)
 Select the display mode to use for scanline conversion. More...
 

Detailed Description

template<class Pixel>
class openmsx::CharacterConverter< Pixel >

Utility class for converting VRAM contents to host pixels.

Definition at line 16 of file CharacterConverter.hh.

Constructor & Destructor Documentation

◆ CharacterConverter()

template<class Pixel >
openmsx::CharacterConverter< Pixel >::CharacterConverter ( VDP vdp,
const Pixel palFg,
const Pixel palBg 
)

Create a new bitmap scanline converter.

Parameters
vdpThe VDP of which the VRAM will be converted.
palFgPointer to 16-entries array that specifies VDP foreground color index to host pixel mapping. This is kept as a pointer, so any changes to the palette are immediately picked up by convertLine.
palBgPointer to 16-entries array that specifies VDP background color index to host pixel mapping. This is kept as a pointer, so any changes to the palette are immediately picked up by convertLine.

Definition at line 24 of file CharacterConverter.cc.

Member Function Documentation

◆ convertLine()

template<class Pixel >
void openmsx::CharacterConverter< Pixel >::convertLine ( Pixel linePtr,
int  line 
)

◆ setDisplayMode()

template<class Pixel >
void openmsx::CharacterConverter< Pixel >::setDisplayMode ( DisplayMode  mode)

Select the display mode to use for scanline conversion.

Parameters
modeThe new display mode.

Definition at line 32 of file CharacterConverter.cc.

References openmsx::DisplayMode::getBase().


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