Main Page   Class Hierarchy   Compound List   File List   Compound Members  

Color Class Reference

Holds color information for a Vertex. More...

#include <Color.h>

List of all members.

Public Methods

 Color (GLfloat r=1.0f, GLfloat g=1.0f, GLfloat b=1.0f, GLfloat a=1.0f)
 Constructor with given color attributes. default color is white fully opaque. More...

GLvoid setColor (GLfloat r, GLfloat g, GLfloat b, GLfloat a=1.0f)
 Setter for color attributes. More...

GLvoid r (GLfloat r)
 setter for red.

GLvoid g (GLfloat g)
 setter for green.

GLvoid b (GLfloat b)
 setter for blue.

GLvoid a (GLfloat a)
 setter for alpha.

GLfloat r () const
 Getter for red.

GLfloat g () const
 Getter for green.

GLfloat b () const
 Getter for blue.

GLfloat a () const
 Getter for alpha.

GLfloat & r ()
 Reference to red.

GLfloat & g ()
 Reference to green.

GLfloat & b ()
 Reference to blue.

GLfloat & a ()
 Reference to alpha.

std::string toString ()
 Returns a string showing attributes.


Detailed Description

Holds color information for a Vertex.


Constructor & Destructor Documentation

Color::Color GLfloat    r = 1.0f,
GLfloat    g = 1.0f,
GLfloat    b = 1.0f,
GLfloat    a = 1.0f
 

Constructor with given color attributes. default color is white fully opaque.

Parameters:
r  red.
g  green,
b  blue.
a  alpha. default value is 1.0.


Member Function Documentation

GLvoid Color::setColor GLfloat    r,
GLfloat    g,
GLfloat    b,
GLfloat    a = 1.0f
 

Setter for color attributes.

Parameters:
r  red.
g  green.
b  blue.
a  alpha.


The documentation for this class was generated from the following files:
Generated on Fri Dec 21 00:16:49 2001 for Mesh Decimation by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001