#include <Math.hpp>
Metody publiczne | |
| COLOR () | |
| COLOR (uint4 c) | |
| COLOR (unsigned long c) | |
| COLOR (uint1 R, uint1 G, uint1 B) | |
| COLOR (uint1 A, uint1 R, uint1 G, uint1 B) | |
| bool | operator== (COLOR c) const |
| bool | operator!= (COLOR c) const |
| COLOR | operator+ () const |
| COLOR | operator- () const |
| COLOR | operator+ (const COLOR &c) const |
| COLOR | operator- (const COLOR &c) const |
| COLOR & | operator+= (const COLOR &c) |
| COLOR & | operator-= (const COLOR &c) |
| COLOR | operator* (float s) const |
| COLOR | operator/ (float s) const |
| COLOR & | operator*= (float s) |
| COLOR & | operator/= (float s) |
| COLOR | operator* (const COLOR &c) const |
| COLOR & | operator*= (const COLOR &c) |
Atrybuty publiczne | |
| union { | |
| uint4 ARGB | |
| Cały kolor razem. | |
| struct { | |
| uint1 B | |
| uint1 G | |
| uint1 R | |
| uint1 A | |
| } | |
| }; | |
Operacje dodawania i odejmowania kolorów, a także dodawania, odejmowania, mnożenia i dzielenia przez liczbę pilnują zakresu i w razie czego obcinają, nie zawijają.
| common::COLOR::COLOR | ( | ) | [inline] |
| common::COLOR::COLOR | ( | uint4 | c | ) | [inline] |
| common::COLOR::COLOR | ( | unsigned long | c | ) | [inline] |
| bool common::COLOR::operator== | ( | COLOR | c | ) | const [inline] |
| bool common::COLOR::operator!= | ( | COLOR | c | ) | const [inline] |
| COLOR common::COLOR::operator+ | ( | ) | const [inline] |
| COLOR common::COLOR::operator- | ( | ) | const [inline] |
| COLOR common::COLOR::operator* | ( | float | s | ) | const [inline] |
| COLOR common::COLOR::operator/ | ( | float | s | ) | const [inline] |
| COLOR& common::COLOR::operator*= | ( | float | s | ) | [inline] |
| COLOR& common::COLOR::operator/= | ( | float | s | ) | [inline] |
Cały kolor razem.
| union { ... } |
1.5.5