CDPColor4
Functions
CDPColor4 |
|
CDPColor4 |
|
CDPColor4 |
|
CDPColor4 |
|
CDPColor4 & | operator= |
const float & | r |
const float & | g |
const float & | b |
const float & | a |
float & | r |
float & | g |
float & | b |
float & | a |
void | set |
void | setAlpha |
Detailed Description
-
class
CDPColor4
A simple helper class for colors.
Public Functions
-
inline
CDPColor4
() Default constructor.
-
inline
CDPColor4
(float r, float g, float b) Construction from r, g, b components.
-
inline
CDPColor4
(float r, float g, float b, float a) Construction from r, g, b, a components.
-
inline const float &
r
() const R component of the color.
-
inline const float &
g
() const G component of the color.
-
inline const float &
b
() const B component of the color.
-
inline const float &
a
() const A component of the color.
-
inline float &
r
() R component of the color.
-
inline float &
g
() G component of the color.
-
inline float &
b
() B component of the color.
-
inline float &
a
() A component of the color.
-
inline void
set
(float r, float g, float b, float a = 1.0f) Sets r, g, b and a value.
-
inline void
setAlpha
(float a) Sets a value.
-
inline