#include <color.h>
Public Member Functions | |
Color () | |
Color (Uint8 r, Uint8 g, Uint8 b, Uint8 a) | |
bool | operator== (const Color &color) const |
void | SetColor (Uint8 r, Uint8 g, Uint8 b, Uint8 a) |
Uint8 | GetRed () const |
Uint8 | GetGreen () const |
Uint8 | GetBlue () const |
Uint8 | GetAlpha () const |
SDL_Color | GetSDLColor () const |
Public Attributes | |
Uint8 | red |
Uint8 | green |
Uint8 | blue |
Uint8 | alpha |
Definition at line 27 of file color.h.
Color::Color | ( | ) |
Color::Color | ( | Uint8 | r, | |
Uint8 | g, | |||
Uint8 | b, | |||
Uint8 | a | |||
) |
Uint8 Color::GetAlpha | ( | ) | const |
Uint8 Color::GetBlue | ( | ) | const |
Uint8 Color::GetGreen | ( | ) | const |
Uint8 Color::GetRed | ( | ) | const |
SDL_Color Color::GetSDLColor | ( | ) | const |
bool Color::operator== | ( | const Color & | color | ) | const |
void Color::SetColor | ( | Uint8 | r, | |
Uint8 | g, | |||
Uint8 | b, | |||
Uint8 | a | |||
) |
Uint8 Color::alpha |
Uint8 Color::blue |
Uint8 Color::green |
Uint8 Color::red |