FlexiColor Class Reference

Class for storing a color value. More...

#include <FlexiColor.h>

List of all members.

Public Member Functions

 FlexiColor ()
 FlexiColor (FlexiColor *c)
 FlexiColor (long color_rgba)
 FlexiColor (float r, float g, float b, float a)
 FlexiColor (float *color_array)
void set (long color_rgba)
void set (float r, float g, float b, float a)
void set (float *color_array)
long getLong ()
float * getFloat ()
const FlexiColoroperator= (const FlexiColor &right)


Detailed Description

Class for storing a color value.

Author:
Alessandro Rasulo (mailto: alex9978@gmail.com)

Constructor & Destructor Documentation

FlexiColor::FlexiColor (  ) 

Constructor

FlexiColor::FlexiColor ( FlexiColor c  ) 

Constructor

Parameters:
c Sets the color from another color

FlexiColor::FlexiColor ( long  color  ) 

Constructor

Parameters:
color Sets the color from an hexadecimal value

FlexiColor::FlexiColor ( float  r,
float  g,
float  b,
float  a 
)

Constructor

Parameters:
r Red component of the color
g Green component of the color
b Blue component of the color
a Alpha component of the color

FlexiColor::FlexiColor ( float *  color_array  ) 

Constructor

Parameters:
color_array Sets the color from an array of 4 float values


Member Function Documentation

void FlexiColor::set ( long  color  ) 

Sets the color from an hexadecimal value

Parameters:
color (eg. 0xaaaaaaff)

void FlexiColor::set ( float  r,
float  g,
float  b,
float  a 
)

Sets the color from 4 float values

Parameters:
r Red component of the color
g Green component of the color
b Blue component of the color
a Alpha component of the color

void FlexiColor::set ( float *  color_array  ) 

Sets the color from an array of 4 float values

Parameters:
color_array Float array pointer

long FlexiColor::getLong (  ) 

Gets the color as a long value

Returns:
a long value

float * FlexiColor::getFloat (  ) 

Gets the color as an array of float

Returns:
a float array pointer

const FlexiColor & FlexiColor::operator= ( const FlexiColor right  ) 

Operator =


The documentation for this class was generated from the following files:

Generated on Sat Nov 15 01:34:31 2008 for FlexiSense by  doxygen 1.5.6