#include <tga_image.h>
Public Member Functions | |
Colour () | |
Colour (float R, float G, float B) | |
const Colour & | operator *= (float fact) |
const Colour | operator+ (const Colour &c2) const |
const Colour | operator * (double f) const |
Public Attributes | |
float | r |
float | g |
float | b |
Definition at line 46 of file tga_image.h.
|
Default constructor. Does not initialize r, g and b. Definition at line 54 of file tga_image.h. |
|
Initializes the colour with R, G and B. Definition at line 56 of file tga_image.h. |
|
Multiplies all components with fact. Definition at line 58 of file tga_image.h. |
|
Returns the sum colour of *this and c2. Definition at line 61 of file tga_image.h. |
|
Returns *this, scaled by f. Definition at line 64 of file tga_image.h. |
|
the red component Definition at line 49 of file tga_image.h. |
|
the green component Definition at line 49 of file tga_image.h. |
|
the blue component Definition at line 49 of file tga_image.h. |