src/tools/tColor.h File Reference

#include "defs.h"

Include dependency graph for tColor.h:

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

Go to the source code of this file.

Classes

struct  tColor
 rgba color represented by floats between 0 and 1 More...

Functions

std::ostream & operator<< (std::ostream &s, const tColor &c)
bool operator== (const tColor &lColor, const tColor &rColor)
bool operator!= (const tColor &lColor, const tColor &rColor)


Function Documentation

bool operator!= ( const tColor lColor,
const tColor rColor 
) [inline]

Definition at line 58 of file tColor.h.

References operator==().

00058                                                                    {
00059     return !operator==(lColor, rColor);
00060 }

Here is the call graph for this function:

std::ostream& operator<< ( std::ostream &  s,
const tColor c 
) [inline]

Definition at line 49 of file tColor.h.

References tColor::a_, tColor::b_, tColor::g_, and tColor::r_.

00049                                                              {
00050     s << "color(" << c.r_ << "," << c.g_ << "," << c.b_ << "," << c.a_ << ")";
00051     return s;
00052 }

bool operator== ( const tColor lColor,
const tColor rColor 
) [inline]

Definition at line 54 of file tColor.h.

References tColor::a_, tColor::b_, tColor::g_, and tColor::r_.

00054                                                                    {
00055     return ( (lColor.r_ == rColor.r_) && (lColor.g_ == rColor.g_) && (lColor.b_ == rColor.b_) && (lColor.a_ == rColor.a_));
00056 }


Generated on Sat Mar 15 23:10:38 2008 for Armagetron Advanced by  doxygen 1.5.4