HoverRace
2.0
|
Typedefs | |
using | paletteEntry_t = SDL_Color |
Functions | |
const paletteEntry_t & | ConvertColor (MR_UInt8 pRed, MR_UInt8 pGreen, MR_UInt8 pBlue, double pGamma, double pIntensity, double pIntensityBase) noexcept |
Generate a palette entry from RGB components. More... | |
paletteEntry_t * | GetColors (double pGamma, double pIntensity, double pIntensityBase) |
Generate the "basic" range of the color palette. More... | |
std::ostream & | operator<< (std::ostream &os, const paletteEntry_t &ent) |
constexpr MR_UInt8 & | PalB (paletteEntry_t &ent) noexcept |
constexpr MR_UInt8 & | PalG (paletteEntry_t &ent) noexcept |
constexpr MR_UInt8 & | PalR (paletteEntry_t &ent) noexcept |
Variables | |
double | basicPalette [][3] |
int | basicPaletteSize = 68 |
MR_DllDeclare MR_UInt8 | colorAdditionTable [MR_NB_COLORS][MR_NB_COLORS] |
MR_DllDeclare MR_UInt8 | colorTable [MR_NB_COLOR_INTENSITY][MR_NB_COLORS] |
using HoverRace::VideoServices::ColorPalette::paletteEntry_t = typedef SDL_Color |
|
noexcept |
Generate a palette entry from RGB components.
This is usually to apply color correction to the background palette.
pRed | The red component. |
pGreen | The green component. |
pBlue | The blue component. |
pGamma | The gamma correction (the inverse of the configuration gamma). |
pIntensity | The color intensity (contrast * brightness). |
pIntensityBase | The base intensity (brightness - intensity). |
MR_DllDeclare paletteEntry_t * HoverRace::VideoServices::ColorPalette::GetColors | ( | double | pGamma, |
double | pIntensity, | ||
double | pIntensityBase | ||
) |
Generate the "basic" range of the color palette.
The "basic" range starts at index MR_RESERVED_COLORS_BEGINNING
and contains MR_BASIC_COLORS
entries. The "background" range follows the "basic" range.
pGamma | The gamma correction (the inverse of the configuration gamma). |
pIntensity | The color intensity (contrast * brightness). |
pIntensityBase | The base intensity (brightness - intensity). |
MR_BASIC_COLORS
defining the "basic" range. std::ostream & HoverRace::VideoServices::ColorPalette::operator<< | ( | std::ostream & | os, |
const paletteEntry_t & | ent | ||
) |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
double HoverRace::VideoServices::ColorPalette::basicPalette |
int HoverRace::VideoServices::ColorPalette::basicPaletteSize = 68 |
MR_UInt8 HoverRace::VideoServices::ColorPalette::colorAdditionTable |
MR_UInt8 HoverRace::VideoServices::ColorPalette::colorTable |