HoverRace  2.0
Namespaces | Macros | Typedefs | Functions | Variables
ColorPalette.h File Reference
#include <SDL2/SDL.h>
#include "../Util/MR_Types.h"
+ Include dependency graph for ColorPalette.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 HoverRace
 
 HoverRace::VideoServices
 
 HoverRace::VideoServices::ColorPalette
 

Macros

#define MR_BACK_COLORS   128
 
#define MR_BASIC_COLORS   100
 
#define MR_DllDeclare
 
#define MR_NB_COLOR_INTENSITY   256
 
#define MR_NB_COLORS   256
 
#define MR_NORMAL_INTENSITY   128
 
#define MR_RESERVED_COLORS   6
 
#define MR_RESERVED_COLORS_BEGINNING   10
 
#define MR_RESERVED_COLORS_END   15
 

Typedefs

using HoverRace::VideoServices::ColorPalette::paletteEntry_t = SDL_Color
 

Functions

const paletteEntry_t & HoverRace::VideoServices::ColorPalette::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 * HoverRace::VideoServices::ColorPalette::GetColors (double pGamma, double pIntensity, double pIntensityBase)
 Generate the "basic" range of the color palette. More...
 
std::ostream & HoverRace::VideoServices::ColorPalette::operator<< (std::ostream &os, const paletteEntry_t &ent)
 
constexpr MR_UInt8HoverRace::VideoServices::ColorPalette::PalB (paletteEntry_t &ent) noexcept
 
constexpr MR_UInt8HoverRace::VideoServices::ColorPalette::PalG (paletteEntry_t &ent) noexcept
 
constexpr MR_UInt8HoverRace::VideoServices::ColorPalette::PalR (paletteEntry_t &ent) noexcept
 

Variables

double HoverRace::VideoServices::ColorPalette::basicPalette [][3]
 
int HoverRace::VideoServices::ColorPalette::basicPaletteSize = 68
 
MR_DllDeclare MR_UInt8 HoverRace::VideoServices::ColorPalette::colorAdditionTable [MR_NB_COLORS][MR_NB_COLORS]
 
MR_DllDeclare MR_UInt8 HoverRace::VideoServices::ColorPalette::colorTable [MR_NB_COLOR_INTENSITY][MR_NB_COLORS]
 

Macro Definition Documentation

#define MR_BACK_COLORS   128
#define MR_BASIC_COLORS   100
#define MR_DllDeclare
#define MR_NB_COLOR_INTENSITY   256
#define MR_NB_COLORS   256
#define MR_NORMAL_INTENSITY   128
#define MR_RESERVED_COLORS   6
#define MR_RESERVED_COLORS_BEGINNING   10
#define MR_RESERVED_COLORS_END   15