10struct Color :
public GXColor {
18 Color(
int red,
int green,
int blue,
int alpha) {
19 Set(red, green, blue, alpha);
21 Color(
const GXColor& rColor) {
27 void Set(
int red,
int green,
int blue,
int alpha) {
34 Color& operator=(ulong color) {
38 Color& operator=(
const GXColor& rColor) {
39 *
this = *
reinterpret_cast<const ulong*
>(&rColor);
43 Color operator|(ulong color)
const {
44 return Color(Toulong() | color);
46 Color operator&(ulong color)
const {
47 return Color(Toulong() & color);
51 return *
reinterpret_cast<ulong*
>(
this);
53 const ulong& Toulongref()
const {
54 return *
reinterpret_cast<const ulong*
>(
this);
57 ulong Toulong()
const {
61 operator ulong()
const {
66 static const ulong RED = 0xFF0000FF;
67 static const ulong GREEN = 0x00FF00FF;
68 static const ulong BLUE = 0x0000FFFF;
70 static const ulong CYAN = 0x00FFFFFF;
71 static const ulong MAGENTA = 0xFF00FFFF;
72 static const ulong YELLOW = 0xFFFF00FF;
74 static const ulong BLACK = 0x000000FF;
75 static const ulong GRAY = 0x808080FF;
76 static const ulong WHITE = 0xFFFFFFFF;