#include <IMG_Color.h>
Public Methods | |
| IMG_ColorRGBA (float r=0,float g=0,float b=0,float a=0) | |
| Constructs a color with the given values. More... | |
| IMG_ColorRGBA (const IMG_ColorRGBA &c) | |
| Copy constructor. More... | |
| IMG_ColorRGBA (const IMG_ColorRGB &c) | |
| Constructs a color with alpha from one without. More... | |
| void | blendColor (const IMG_ColorRGBA &c) |
| Blends the given color with this color. More... | |
Public Attributes | |
| float | m_r |
| Red component of the color. | |
| float | m_g |
| Green component of the color. | |
| float | m_b |
| Blue component of the color. | |
| float | m_a |
| Alpha component of the color. | |
Components are stored as floats.
|
|
Constructs a color with the given values.
|
|
|
Copy constructor.
|
|
|
Constructs a color with alpha from one without.
|
|
|
Blends the given color with this color. Uses the alpha of the given color for blending. The alpha of this color is left untouched.
|
1.2.4 written by Dimitri van Heesch,
© 1997-2000