Color Class Reference
#include <color.h>
List of all members.
Public Member Functions |
| Color () |
| Color (const osg::Vec4 &color) |
| Color (float r, float g, float b) |
| Color (float r, float g, float b, float a) |
void | print (std::ostream &out) const |
float | alpha () const |
float & | alpha () |
Static Public Member Functions |
static Color | rgb255 (unsigned char r, unsigned char g, unsigned char b, unsigned char a=255) |
Friends |
std::ostream & | operator<< (std::ostream &out, const Color &col) |
Detailed Description
- Examples:
-
template_sphererobot/main.cpp.
Constructor & Destructor Documentation
Color |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b | |
|
) |
| | [inline] |
Color |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
a | |
|
) |
| | [inline] |
Member Function Documentation
float& alpha |
( |
|
) |
[inline] |
float alpha |
( |
|
) |
const [inline] |
void print |
( |
std::ostream & |
out |
) |
const [inline] |
static Color rgb255 |
( |
unsigned char |
r, |
|
|
unsigned char |
g, |
|
|
unsigned char |
b, |
|
|
unsigned char |
a = 255 | |
|
) |
| | [inline, static] |
Friends And Related Function Documentation
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const Color & |
col | |
|
) |
| | [friend] |
The documentation for this class was generated from the following file: