#include <color.h>
Public Methods | |
| Color () | |
| Color (rgb col) | |
| Color (float rf, float gf, float bf) | |
| ~Color () | |
| const Color | operator+ (const Color &col) const |
| Addition zweier Farbwerte. | |
| const Color | operator * (const float &alpha) const |
| Multiplikation eines Farbwertes mit einem Skalar. | |
| const Color | operator/ (const float &scalar) const |
| Divisiion eines Farbwertes durch einen Skalar. | |
| const Color | operator= (const Color &col) |
| const Color | operator+= (const Color &col) |
| rgb | toRGB () |
Public Attributes | |
| float | r |
| float | g |
| float | b |
Definition at line 16 of file color.h.
|
|
Definition at line 20 of file color.h. Referenced by operator *(), operator+(), and operator/().
|
|
|
Definition at line 4 of file color.cpp. References rgb::b, b, rgb::g, g, rgb::r, and r.
|
|
||||||||||||||||
|
Definition at line 11 of file color.cpp.
|
|
|
Definition at line 23 of file color.h.
00023 {};
|
|
|
Multiplikation eines Farbwertes mit einem Skalar.
Definition at line 37 of file color.cpp. References Color().
00038 {
00039 return Color(r * alpha, g * alpha, b * alpha);
00040 }
|
|
|
Addition zweier Farbwerte.
Definition at line 24 of file color.cpp. References b, Color(), g, and r.
|
|
|
Definition at line 29 of file color.cpp.
|
|
|
Divisiion eines Farbwertes durch einen Skalar.
Definition at line 43 of file color.cpp. References Color().
00044 {
00045 return Color(r / scalar, g / scalar, b / scalar);
00046 }
|
|
|
Definition at line 48 of file color.cpp.
|
|
|
Definition at line 57 of file color.cpp. References b, rgb::b, g, rgb::g, r, and rgb::r. Referenced by Raycaster::Raycast().
|
|
|
Definition at line 18 of file color.h. Referenced by Color(), operator+(), operator+=(), operator=(), and toRGB(). |
|
|
Definition at line 18 of file color.h. Referenced by Color(), operator+(), operator+=(), operator=(), and toRGB(). |
|
|
Definition at line 18 of file color.h. Referenced by Color(), operator+(), operator+=(), operator=(), and toRGB(). |
1.3-rc2