#include <Color.hpp>
Public Member Functions | |
sfColor () | |
sfColor (sfUint32 ColorRGBA) | |
sfColor (sfUint8 R, sfUint8 G, sfUint8 B, sfUint8 A=255) | |
sfUint32 | ToRGBA () const |
Public Attributes | |
sfUint8 | Red |
Red component. | |
sfUint8 | Green |
Green component. | |
sfUint8 | Blue |
Blue component. | |
sfUint8 | Alpha |
Alpha (transparency) component. | |
Static Public Attributes | |
static const sfColor | Black |
static const sfColor | White |
Definition at line 37 of file Color.hpp.
sfColor::sfColor | ( | sfUint32 | ColorRGBA | ) | [explicit] |
sfColor::sfColor | ( | sfUint8 | R, | |
sfUint8 | G, | |||
sfUint8 | B, | |||
sfUint8 | A = 255 | |||
) |
sfUint32 sfColor::ToRGBA | ( | ) | const |
Get the RGBA representation of the color
Definition at line 80 of file Color.cpp.
References Alpha, Blue, Green, and Red.
Referenced by sfImage::Create(), sfImage::CreateMaskFromColor(), sfImage::Resize(), and sfImage::SetPixel().