Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

ddgColor3 Class Reference

A convenience object to support colors. More...

#include <render/ddgcolor.h>

List of all members.


Public Members

 ddgColor3 ( const ddgColor3 *c)
Construct a color from a color.

 ddgColor3 ( unsigned char r, unsigned char g, unsigned char b)
Construct a color from R,G,B values.

 ddgColor3 ( void )
Create a default white color.

 operator const unsigned char * ()
return the value of the vector as a unsigned char array.

 operator ddgColor3 * ()
return a pointer to a vector from a vector.

unsigned char operator[] (int n) const
Get value of one dimension of the vector.

void set (const ddgColor3 *c)
Set color into color object.

void set (unsigned char r, unsigned char g,unsigned char b)
Set color into color object.

void enable (void)
Set the color into the graphics system.

void linterp (const ddgColor3 *a, const ddgColor3 *b, float t)
Linearly Interpolate a new color from two other colors.

void einterp (const ddgColor3 *a, const ddgColor3 *b, float t)
Exponentially Interpolate a new color from two other colors.

void cinterp (const ddgColor3 *a, const ddgColor3 *b, float t)
Cosine Interpolate a new color from two other colors.

void binterp (const ddgColor3 *a, const ddgColor3 *b, float t)
Bilinear Interpolate a new color from two other colors.

unsigned char r (void)
Return red component.

unsigned char g (void)
Return green component.

unsigned char b (void)
Return blue component.

 ddgColor3 ( const ddgColor3 *c)
Construct a color from a color.

 ddgColor3 ( unsigned char r, unsigned char g, unsigned char b)
Construct a color from R,G,B values.

 ddgColor3 ( void )
Create a default white color.

 operator const unsigned char * ()
return the value of the vector as a unsigned char array.

 operator ddgColor3 * ()
return a pointer to a vector from a vector.

unsigned char operator[] (int n) const
Get value of one dimension of the vector.

void set (const ddgColor3 *c)
Set color into color object.

void set (unsigned char r, unsigned char g,unsigned char b)
Set color into color object.

void linterp (const ddgColor3 *a, const ddgColor3 *b, float t)
Linearly Interpolate a new color from two other colors.

void einterp (const ddgColor3 *a, const ddgColor3 *b, float t)
Exponentially Interpolate a new color from two other colors.

void cinterp (const ddgColor3 *a, const ddgColor3 *b, float t)
Cosine Interpolate a new color from two other colors.

void binterp (const ddgColor3 *a, const ddgColor3 *b, float t)
Bilinear Interpolate a new color from two other colors.

unsigned char r (void)
Return red component.

unsigned char g (void)
Return green component.

unsigned char b (void)
Return blue component.

unsigned char v [3]
ddgColor data.


Detailed Description

A convenience object to support colors.

This a 3 component color, with R,G,B values from 0 to 1.


The documentation for this class was generated from the following files:
Generated at Sun Sep 17 19:27:52 2000 for Digital Dawn Graphics Toolkit by doxygen 0.49-991205 written by Dimitri van Heesch, © 1997-1999