#include <Triangle.h>
Public Member Functions | |
Color (float cr, float cg, float cb) | |
Color (float rgb[]) | |
Color () | |
Default color is black (r=0.0, g=0.0, b=0.0). | |
Public Attributes | |
float | r |
red | |
float | g |
green | |
float | b |
blue |
Definition at line 72 of file Triangle.h.
Color::Color | ( | float | cr, | |
float | cg, | |||
float | cb | |||
) | [inline] |
Color::Color | ( | float | rgb[] | ) | [inline] |
rgb | Array of colors (0 - red, 1 - green, 2 - blue) |
Definition at line 91 of file Triangle.h.
Color::Color | ( | ) | [inline] |
float Color::r |
red
Definition at line 73 of file Triangle.h.
Referenced by operator *=(), operator+=(), operator<<(), and operator==().
float Color::g |
green
Definition at line 74 of file Triangle.h.
Referenced by operator *=(), operator+=(), operator<<(), and operator==().
float Color::b |
blue
Definition at line 75 of file Triangle.h.
Referenced by operator *=(), operator+=(), operator<<(), and operator==().