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

Color4 Class Reference

RGBA color class. More...

#include <Color4.h>

Inherits Color3.

Inheritance diagram for Color4:

Inheritance graph
[legend]
Collaboration diagram for Color4:

Collaboration graph
[legend]
List of all members.

Public Methods

 Color4 ()
 Color4 (float rr, float gg, float bb)
 Color4 (float rr, float gg, float bb, float aa)
 Color4 (const Color3 &c, float aa)
 Color4 (const Color4 &c)
float & operator[] (unsigned int i)
Color4 & clamp ()
Color4 & lerp (Color4 &from, Color4 &to, float t)
Color4 & operator= (const Color3 &c)
Color4 & operator= (const Color4 &c)
void operator-= (const Color4 &c)
void operator+= (const Color4 &c)
void operator *= (float s)
void operator *= (const Color4 &c)
void operator/= (float s)
Color4 operator- (const Color4 &c) const
Color4 operator+ (const Color4 &c) const
Color4 operator * (float s) const
Color4 operator * (const Color4 &c) const
Color4 operator/ (float s) const
float gray () const
Color4 blend (float d, float s, const Color4 &src)
Color4 over (const Color4 &c)
Color4 in (const Color4 &c)
Color4 heldout (const Color4 &c)
Color4 atop (const Color4 &c)
Color4 xor (const Color4 &c)

Public Attributes

float a

Friends

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

Detailed Description

RGBA 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.