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.
Referenced by C4Draw::ApplyGammaTo(), C4ConsoleGUIPreviewWindow::Close(), C4TransferZone::Draw(), C4PathFinderRay::Draw(), C4Def::Draw(), C4Object::Draw(), C4ScriptGuiWindow::Draw(), C4MenuItem::DrawElement(), C4Chart::DrawElement(), C4Menu::DrawFrame(), C4Command::Fail(), GameMsgObject(), GameMsgObjectError(), GameMsgObjectPlayer(), GenerateRandomPlayerColor(), CPNGFile::GetPix(), C4StartupPlrColorPickerDlg::OnClosed(), CSurface8::Read(), C4Surface::ReadBMP(), C4Sky::SetFadePalette(), C4TextureMap::StoreMapPalette(), and C4Network2ClientDlg::UpdateText().
#define GetBlueValue | ( | rgb | ) | ((unsigned char)(rgb)) |
Definition at line 27 of file StdColors.h.
Referenced by C4Draw::ApplyGammaTo(), C4PlayerList::CheckColorDw(), ClrByOwner(), CStdGL::FillBG(), C4Draw::Grayscale(), C4StartupPlrColorPickerDlg::OnClosed(), PlrClr2TxtClr(), C4BMP256Info::Set(), C4FoWLight::SetColor(), CPNGFile::SetPix(), and C4TextureMap::StoreMapPalette().
#define GetGreenValue | ( | rgb | ) | ((unsigned char)(((unsigned short)(rgb)) >> 8)) |
Definition at line 28 of file StdColors.h.
Referenced by C4Draw::ApplyGammaTo(), C4PlayerList::CheckColorDw(), ClrByOwner(), CStdGL::FillBG(), C4Draw::Grayscale(), C4StartupPlrColorPickerDlg::OnClosed(), PlrClr2TxtClr(), C4BMP256Info::Set(), C4FoWLight::SetColor(), CPNGFile::SetPix(), and C4TextureMap::StoreMapPalette().
#define GetRedValue | ( | rgb | ) | ((unsigned char)((rgb)>>16)) |
Definition at line 29 of file StdColors.h.
Referenced by C4Draw::ApplyGammaTo(), C4PlayerList::CheckColorDw(), ClrByOwner(), CStdGL::FillBG(), C4Draw::Grayscale(), C4StartupPlrColorPickerDlg::OnClosed(), PlrClr2TxtClr(), C4BMP256Info::Set(), C4FoWLight::SetColor(), CPNGFile::SetPix(), and C4TextureMap::StoreMapPalette().
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 173 of file StdColors.h.
Referenced by IsColorConflict().
|
inline |
Definition at line 146 of file StdColors.h.
Referenced by IsColorConflict().
|
inline |
Definition at line 22 of file StdColors.h.
Referenced by CStdFont::AddRenderedChar(), C4LandscapeRenderGL::Clear(), ClrByOwner(), GetClrModulation(), CPNGFile::GetPix(), C4Draw::Grayscale(), and C4LandscapeRenderGL::Update().
|
inline |
Definition at line 164 of file StdColors.h.
Referenced by IsColorConflict().