![]() |
![]() |
![]() |
|||||||||||||||||
![]() |
![]() |
![]() |
|||||||||||||||||
![]() |
|
![]() |
|||||||||||||||||
![]() |
![]() |
![]() |
![]() |
Colour Class Reference |
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.
Colour::Colour | ( | ) | [inline] |
Default constructor. Does not initialize r, g and b.
Definition at line 54 of file tga_image.h.
Colour::Colour | ( | float | R, | |
float | G, | |||
float | B | |||
) | [inline] |
Initializes the colour with R, G and B.
Definition at line 56 of file tga_image.h.
const Colour& Colour::operator*= | ( | float | fact | ) | [inline] |
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.
const Colour Colour::operator* | ( | double | f | ) | const [inline] |
Returns *this, scaled by f.
Definition at line 64 of file tga_image.h.
float Colour::r |
the red component
Definition at line 49 of file tga_image.h.
float Colour::g |
the green component
Definition at line 49 of file tga_image.h.
float Colour::b |
the blue component
Definition at line 49 of file tga_image.h.
![]() |
![]() |
![]() |
||||
![]() |
|
![]() |
||||
![]() |
![]() |
![]() |
||||
![]() |
|
![]() |
||||
![]() |
![]() |
![]() |
||||
![]() |
![]() |
![]() |