_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
A platform independent color. More...
#include <color.h>
Public Member Functions | |
CColor () | |
CColor (unsigned char r, unsigned char g, unsigned char b, unsigned char a=0) | |
CColor (const CColor &color) | |
color.h - The A platform independent color. | |
void | Parse (lua_State *l, int index=-1) |
operator SDL_Color () const | |
Cast to a SDL_Color. More... | |
operator IntColor () const | |
Cast to IntColor. More... | |
Public Attributes | |
unsigned char | R |
unsigned char | G |
Red. More... | |
unsigned char | B |
Green. More... | |
unsigned char | A |
Blue. More... | |
A platform independent color.
|
inline |
|
inline |
|
inline |
CColor::operator IntColor | ( | ) | const |
Cast to IntColor.
CColor::operator SDL_Color | ( | ) | const |
Cast to a SDL_Color.
void CColor::Parse | ( | lua_State * | l, |
int | index = -1 |
||
) |
unsigned char CColor::A |
Blue.
unsigned char CColor::B |
Green.
unsigned char CColor::G |
Red.
unsigned char CColor::R |