Color Struct Reference

Color representation - 3 float (r, g, b) in range <0.0, 1.0>. More...

#include <Triangle.h>

List of all members.

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


Detailed Description

Color representation - 3 float (r, g, b) in range <0.0, 1.0>.

Note:
<0.0, 1.0> is effective range, but there are no range restriction.

Definition at line 72 of file Triangle.h.


Constructor & Destructor Documentation

Color::Color ( float  cr,
float  cg,
float  cb 
) [inline]

Parameters:
cr red
cg green
cb blue

Definition at line 82 of file Triangle.h.

Color::Color ( float  rgb[]  )  [inline]

Parameters:
rgb Array of colors (0 - red, 1 - green, 2 - blue)

Definition at line 91 of file Triangle.h.

Color::Color (  )  [inline]

Default color is black (r=0.0, g=0.0, b=0.0).

Definition at line 100 of file Triangle.h.


Member Data Documentation

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==().


The documentation for this struct was generated from the following file:
Generated on Thu Dec 6 19:33:11 2007 for Radiosity Renderer and Visualizer by  doxygen 1.5.2