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

Color3 Class Reference

RGB color class. More...

#include <Color3.h>

Inherited by Color4.

Inheritance diagram for Color3:

Inheritance graph
[legend]
List of all members.

Public Methods

 Color3 ()
 Color3 (const string &name)
 Color3 (float rr, float gg, float bb)
 Color3 (const Color3 &c)
float & operator[] (unsigned int i)
Color3 & clamp ()
Color3 & lerp (Color3 &from, Color3 &to, float t)
Color3 & operator= (const Color3 &c)
Color3 & operator= (const Color4 &c)
void operator-= (const Color3 &c)
void operator+= (const Color3 &c)
void operator *= (float s)
void operator *= (const Color3 &c)
void operator/= (float s)
Color3 operator- (const Color3 &c) const
Color3 operator+ (const Color3 &c) const
Color3 operator * (float s) const
Color3 operator * (const Color3 &c) const
Color3 operator/ (float s) const
void operator<< (Color3 &c)
float gray () const

Static Public Methods

void declare (const string &name, const Color3 &c)
bool find (const string &name, Color3 &c)

Public Attributes

float r
float g
float b

Friends

ostream & operator<< (ostream &stream, const Color3 &c)
ObjectFileoperator>> (ObjectFile &f, Color3 &c)

Detailed Description

RGB color class.


The documentation for this class was generated from the following files:
This documentation was generated using doxygen. If you have any comments or additions please mail me.