FlexiColor Class Reference
Class for storing a color value.
More...
#include <FlexiColor.h>
List of all members.
Detailed Description
Class for storing a color value.
- Author:
- Alessandro Rasulo (mailto: alex9978@gmail.com)
Constructor & Destructor Documentation
FlexiColor::FlexiColor |
( |
|
) |
|
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:
-
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
The documentation for this class was generated from the following files:
- include/FlexiSense/common/FlexiColor.h
- src/common/FlexiColor.cpp