Bubba-3D
0.9.0
Awesome game engine!
|
#include <HUDGraphic.h>
Public Member Functions | |
Color (std::string hexString) | |
Color (std::string hexString, float opacity) | |
Color (int red, int green, int blue) | |
Color (int red, int green, int blue, float opacity) | |
Color (chag::float4 rawColor) | |
chag::float4 | getColor () |
Represents a color
Definition at line 36 of file HUDGraphic.h.
HUDGraphic::Color::Color | ( | std::string | hexString | ) |
Create a color from its hex value.
hexString | May or may not star with '#'. The size of the string excluding the '#' sign should be 3 or 6. |
Definition at line 168 of file HUDGraphic.cpp.
HUDGraphic::Color::Color | ( | std::string | hexString, |
float | opacity | ||
) |
Create a color from its hex value and opacity.
hexString | May or may not star with '#'. The size of the string excluding the '#' sign should be 3 or 6. |
opacity | A value between 0.0 and 1.0 specifying the opacity of the color |
Definition at line 171 of file HUDGraphic.cpp.
HUDGraphic::Color::Color | ( | int | red, |
int | green, | ||
int | blue | ||
) |
Create a color from its color values. The values are expected to be in the range 0-255 or 0x00 to 0xFF.
Definition at line 165 of file HUDGraphic.cpp.
HUDGraphic::Color::Color | ( | int | red, |
int | green, | ||
int | blue, | ||
float | opacity | ||
) |
Create a color from its color values. The values are expected to be in the range 0-255 or 0x00 to 0xFF except the opacity. The opacity should be a value between 0.0 and 1.0
Definition at line 155 of file HUDGraphic.cpp.
HUDGraphic::Color::Color | ( | chag::float4 | rawColor | ) |
Create the color from a raw vector. All values should be in the range 0.0-1.0
float4 HUDGraphic::Color::getColor | ( | ) |
Get the calculated raw color.
Definition at line 211 of file HUDGraphic.cpp.