gKit2 light
Public Member Functions | Public Attributes | List of all members

representation d'une couleur (rgba) transparente ou opaque. More...

#include <color.h>

Public Member Functions

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

Public Attributes

float r
 
float g
 
float b
 
float a
 

Detailed Description

representation d'une couleur (rgba) transparente ou opaque.

Definition at line 13 of file color.h.

Constructor & Destructor Documentation

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) {} // remplace alpha.

The documentation for this struct was generated from the following file: