#include <color.h>
Public Methods | |
| Color () | |
| Color (rgb col) | |
| Color (float rf, float gf, float bf) | |
| ~Color () | |
| const Color | operator+ (const Color &col) const |
| const Color | operator * (const float &alpha) const |
| const Color | operator/ (const float &scalar) const |
| 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 18 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 21 of file color.h.
00021 {};
|
|
|
Definition at line 37 of file color.cpp. References Color().
00038 {
00039 return Color(r * alpha, g * alpha, b * alpha);
00040 }
|
|
|
Definition at line 24 of file color.cpp. References b, Color(), g, and r.
|
|
|
Definition at line 29 of file color.cpp.
|
|
|
Definition at line 42 of file color.cpp. References Color().
00043 {
00044 return Color(r / scalar, g / scalar, b / scalar);
00045 }
|
|
|
Definition at line 47 of file color.cpp.
|
|
|
Definition at line 56 of file color.cpp. References b, rgb::b, g, rgb::g, r, and rgb::r. Referenced by Perspective::Raycast(), and Raycaster::Raycast().
|
|
|
Definition at line 16 of file color.h. Referenced by Color(), operator+(), operator+=(), operator=(), and toRGB(). |
|
|
Definition at line 16 of file color.h. Referenced by Color(), operator+(), operator+=(), operator=(), and toRGB(). |
|
|
Definition at line 16 of file color.h. Referenced by Color(), operator+(), operator+=(), operator=(), and toRGB(). |
1.3-rc2