representation d'une couleur (rgba) transparente ou opaque.
More...
#include <color.h>
|
| Color (const float _r=0.f, const float _g=0.f, const float _b=0.f, const float _a=1.f) |
| constructeur par defaut. More...
|
|
| Color (const Color &color, const float alpha) |
| cree une couleur avec les memes composantes que color, mais remplace sa composante alpha (color.r, color.g, color.b, alpha). More...
|
|
|
float | r |
|
float | g |
|
float | b |
|
float | a |
|
representation d'une couleur (rgba) transparente ou opaque.
Definition at line 13 of file color.h.
Color::Color |
( |
const float |
_r = 0.f , |
|
|
const float |
_g = 0.f , |
|
|
const float |
_b = 0.f , |
|
|
const float |
_a = 1.f |
|
) |
| |
|
inline |
constructeur par defaut.
Definition at line 16 of file color.h.
16 : r(_r), g(_g), b(_b), a(_a) {}
Color::Color |
( |
const Color & |
color, |
|
|
const float |
alpha |
|
) |
| |
|
inline |
cree une couleur avec les memes composantes que color, mais remplace sa composante alpha (color.r, color.g, color.b, alpha).
Definition at line 18 of file color.h.
18 : r(color.r), g(color.g), b(color.b), a(alpha) {}
The documentation for this struct was generated from the following file: