That Terminal
A terminal emulator designed for video making purposes.
ColorSlideCache Class Reference

Public Member Functions

 ColorSlideCache (const unsigned char *c, const unsigned short *p, unsigned l)
 
void SetWidth (unsigned w)
 
void Get (unsigned x, unsigned char &ch, unsigned char &c1, unsigned char &c2) const
 

Detailed Description

ColorSlideCache implements smooth color slides in text mode.

Constructor & Destructor Documentation

◆ ColorSlideCache()

ColorSlideCache::ColorSlideCache ( const unsigned char *  c,
const unsigned short *  p,
unsigned  l 
)
inline

Saves the desired color positions and proportions of the slide for latter use.

Member Function Documentation

◆ Get()

void ColorSlideCache::Get ( unsigned  x,
unsigned char &  ch,
unsigned char &  c1,
unsigned char &  c2 
) const
inline

Retrieves the color data for the given position on the slide.

Parameters
xCoordinate, must be smaller than the width in SetWidth
c1Out-param: Background color to render
c2Out-param: Foreground color to render, if ch is not blank (0)
chOut-param: Character to render (1 = dither pattern, 0 = black)

◆ SetWidth()

void ColorSlideCache::SetWidth ( unsigned  w)
inline

Configures the slide for a particular rendering width.


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