Bubba-3D  0.9.0
Awesome game engine!
Public Member Functions | List of all members
HUDGraphic::Color Class Reference

#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 ()
 

Detailed Description

Represents a color

Definition at line 36 of file HUDGraphic.h.

Constructor & Destructor Documentation

HUDGraphic::Color::Color ( std::string  hexString)

Create a color from its hex value.

Parameters
hexStringMay 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.

Parameters
hexStringMay or may not star with '#'. The size of the string excluding the '#' sign should be 3 or 6.
opacityA 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

Member Function Documentation

float4 HUDGraphic::Color::getColor ( )

Get the calculated raw color.

Definition at line 211 of file HUDGraphic.cpp.


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