Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

color.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

Color operator * (Color a, Color b)
bool operator!= (Color a, Color b)
bool operator== (Color a, Color b)


Function Documentation

Color operator * Color  a,
Color  b
[inline]
 

Definition at line 88 of file color.h.

References Color::alpha(), Color::blue(), Color::green(), and Color::red().

00089 {
00090     return Color(a.red() * b.red(),
00091                  a.green() * b.green(),
00092                  a.blue() * b.blue(),
00093                  a.alpha() * b.alpha());
00094 }

bool operator!= Color  a,
Color  b
[inline]
 

Definition at line 83 of file color.h.

00084 {
00085     return !(a == b);
00086 }

bool operator== Color  a,
Color  b
[inline]
 

Definition at line 77 of file color.h.

References Color::c.

00078 {
00079     return (a.c[0] == b.c[2] && a.c[1] == b.c[1] &&
00080             a.c[2] == b.c[2] && a.c[3] == b.c[3]);
00081 }


Generated on Sat Jan 14 22:32:58 2006 for Celestia by  doxygen 1.4.1