Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

IMG_ColorRGB Class Reference

Implements a color with red, green and blue components. More...

#include <IMG_Color.h>

List of all members.

Public Methods

 IMG_ColorRGB (float r=0,float g=0,float b=0)
 Constructs a color with the given values. More...

 IMG_ColorRGB (const IMG_ColorRGB &c)
 Copy constructor. More...

 IMG_ColorRGB (const IMG_ColorRGBA &c)
 Constructs a color without alpha from one with. More...


Public Attributes

float m_r
 Red component of the color.

float m_g
 Green component of the color.

float m_b
 Blue component of the color.


Detailed Description

Implements a color with red, green and blue components.

Components are stored as floats.

Author(s):
Maarten Gribnau
Date:
March 7, 2001


Constructor & Destructor Documentation

IMG_ColorRGB::IMG_ColorRGB ( float r = 0,
float g = 0,
float b = 0 ) [inline]
 

Constructs a color with the given values.

Parameters:
r   requested red component of the color
g   requested green component of the color
b   requested blue component of the color

IMG_ColorRGB::IMG_ColorRGB ( const IMG_ColorRGB & c ) [inline]
 

Copy constructor.

Parameters:
c   the color to copy.

IMG_ColorRGB::IMG_ColorRGB ( const IMG_ColorRGBA & c ) [inline]
 

Constructs a color without alpha from one with.

Parameters:
c   the color to copy.


The documentation for this class was generated from the following file:
Generated at Thu May 3 17:29:38 2001 for ImgLib by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000