|
| | 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 |
| |
ColorSlideCache implements smooth color slides in text mode.
◆ 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.
◆ 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
-
| x | Coordinate, must be smaller than the width in SetWidth |
| c1 | Out-param: Background color to render |
| c2 | Out-param: Foreground color to render, if ch is not blank (0) |
| ch | Out-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: