Go to the source code of this file.
Classes | |
struct | CStdPalette |
Macros | |
#define | C4RGB(r, g, b) (((DWORD)(0xff)<<24)|(((DWORD)(r)&0xff)<<16)|(((DWORD)(g)&0xff)<<8)|((b)&0xff)) |
#define | GetBlueValue(rgb) ((unsigned char)(rgb)) |
#define | GetGreenValue(rgb) ((unsigned char)(((unsigned short)(rgb)) >> 8)) |
#define | GetRedValue(rgb) ((unsigned char)((rgb)>>16)) |
Functions | |
uint32_t | RGBA (uint32_t r, uint32_t g, uint32_t b, uint32_t a) |
void | BltAlpha (DWORD &dwDst, DWORD dwSrc) |
void | BltAlphaAdd (DWORD &dwDst, DWORD dwSrc) |
void | ModulateClr (DWORD &dwDst, DWORD dwMod) |
void | ModulateClrA (DWORD &dwDst, DWORD dwMod) |
void | ModulateClrMOD2 (DWORD &dwDst, DWORD dwMod) |
DWORD | LightenClrBy (DWORD &dwDst, int iBy) |
DWORD | DarkenClrBy (DWORD &dwDst, int iBy) |
DWORD | PlrClr2TxtClr (DWORD dwClr) |
DWORD | GetClrModulation (DWORD dwSrcClr, DWORD dwDstClr, DWORD &dwBack) |
bool | rgb2xyY (double r, double g, double b, double *px, double *py, double *pY) |
bool | xy2upvp (double x, double y, double *pu, double *pv) |
bool | RGB2rgb (int R, int G, int B, double *pr, double *pg, double *pb, double gamma=2.2) |
#define C4RGB | ( | r, | |
g, | |||
b | |||
) | (((DWORD)(0xff)<<24)|(((DWORD)(r)&0xff)<<16)|(((DWORD)(g)&0xff)<<8)|((b)&0xff)) |
Definition at line 26 of file StdColors.h.
#define GetBlueValue | ( | rgb | ) | ((unsigned char)(rgb)) |
Definition at line 27 of file StdColors.h.
#define GetGreenValue | ( | rgb | ) | ((unsigned char)(((unsigned short)(rgb)) >> 8)) |
Definition at line 28 of file StdColors.h.
#define GetRedValue | ( | rgb | ) | ((unsigned char)((rgb)>>16)) |
Definition at line 29 of file StdColors.h.
Definition at line 31 of file StdColors.h.
Referenced by CStdFont::AddRenderedChar(), C4Surface::BltPix(), and C4Surface::GetPixDw().
Definition at line 42 of file StdColors.h.
Referenced by C4Surface::BltPix().
Definition at line 93 of file StdColors.h.
Definition at line 112 of file StdColors.h.
References RGBA().
Definition at line 82 of file StdColors.h.
Referenced by PlrClr2TxtClr().
Definition at line 53 of file StdColors.h.
Referenced by CStdFont::DrawText(), and C4Surface::GetPixDw().
Definition at line 65 of file StdColors.h.
Referenced by CStdFont::DrawText().
Definition at line 73 of file StdColors.h.
Referenced by C4Surface::GetPixDw().
Definition at line 104 of file StdColors.h.
References GetBlueValue, GetGreenValue, GetRedValue, and LightenClrBy().
Referenced by C4MessageBoard::Draw().
|
inline |
Definition at line 175 of file StdColors.h.
Referenced by IsColorConflict().
|
inline |
Definition at line 148 of file StdColors.h.
Referenced by IsColorConflict().
|
inline |
Definition at line 22 of file StdColors.h.
Referenced by CStdFont::AddRenderedChar(), ClrByOwner(), GetClrModulation(), CPNGFile::GetPix(), C4Draw::Grayscale(), and C4LandscapeRenderGL::Update().
|
inline |
Definition at line 166 of file StdColors.h.
Referenced by IsColorConflict().