|
QSDK 1.1 Documentation |
#include <Q/maths.h>
Public Member Functions | |
| Color4b () | |
| Color4b (const Color4b &c) | |
| Color4b (unsigned int v) | |
| Color4b (unsigned int r, unsigned int g, unsigned int b) | |
| Color4b (unsigned int r, unsigned int g, unsigned int b, unsigned int a) | |
| Color4b (const Vec3b &v) | |
| Color4b (const Vec4b &v) | |
| Color4b (const Vec3f &v) | |
| Color4b (const Vec4f &v) | |
| Color4b (const Vec4ui &v) | |
| unsigned int | alpha () const |
| unsigned int | red () const |
| unsigned int | green () const |
| unsigned int | blue () const |
| unsigned int | value () const |
| operator unsigned int () const | |
| operator Vec4b () const | |
| operator Vec4f () const | |
| operator Vec3f () const | |
| Color4b & | operator= (const Color4b &c) |
| void | alpha (unsigned int a) |
| void | red (unsigned int a) |
| void | green (unsigned int a) |
| void | blue (unsigned int a) |
| void | value (unsigned int value) |
Friends | |
| Color4b | operator+ (const Color4b &c1, const Color4b &c2) |
| Color4b | operator- (const Color4b &c1, const Color4b &c2) |
| Color4b | operator- (float m, const Color4b &c1) |
| Color4b | operator * (const Color4b &c1, const Color4b &c2) |
| Color4b | operator * (const Color4b &c1, float m) |
| Color4b | operator * (float m, const Color4b &c1) |
| int | operator== (const Color4b &c1, const Color4b &c2) |
| int | operator!= (const Color4b &c1, const Color4b &c2) |
|
|
Construct a black transparent color. |
|
|
Construct a color, copied from c. |
|
|
Construct a color of value v. |
|
||||||||||||||||
|
Construct an opaque color.
|
|
||||||||||||||||||||
|
Construct a color.
|
|
|
Construct an opaque color from the Vec3<unsigned char>, such that v.x sets the red channel, v.y sets the green channel and v.z sets the blue channel. |
|
|
Construct a color from the Vec4<unsigned char>, such that v.x sets the red channel, v.y sets the green channel, v.z sets the blue channel and v.w sets the alpha channel. |
|
|
Construct an opaque color from the Vec3<float>, such that v.x sets the red channel, v.y sets the green channel and v.z sets the blue channel. The values of each element of the vector are clamped between 0 and 1. |
|
|
Construct a color from the Vec4<float>, such that v.x sets the red channel, v.y sets the green channel, v.z sets the blue channel and v.w sets the alpha channel. The values of each element of the vector are clamped between 0 and 1. |
|
|
Construct a color from the Vec4<unsigned int>, such that v.x sets the red channel, v.y sets the green channel, v.z sets the blue channel and v.w sets the alpha channel. The values of each element of the vector are clamped between 0 and 255. |
|
|
Set the alpha channel of the color. |
|
|
Return the alpha component of the color. |
|
|
Set the blue channel of the color. |
|
|
Return the blue component of the color. |
|
|
Set the green channel of the color. |
|
|
Return the green component of the color. |
|
|
Return the diect value of the color. |
|
|
Return the color as a Vec3<float>. |
|
|
Return the color as a Vec4<unsigned char>. |
|
|
Return the color as a Vec4<float>. |
|
|
Set the red channel of the color. |
|
|
Return the red component of the color. |
|
|
Set the direct value of the color. |
|
|
Return the direct value of the color. |
|
||||||||||||
|
Scale each component of c1 by m and clamp the result. |
|
||||||||||||
|
Scale each component of c1 by m and clamp the result. |
|
||||||||||||
|
Scale each component of c1 by the respective component of c2 and clamp the result. |
|
||||||||||||
|
Add the individual components of the color together and clamp the result. |
|
||||||||||||
|
Subtract the individual components of c2 from a color that has m as the value of each component and clamp the result. |
|
||||||||||||
|
Subtract the individual components of c2 from c1 and clamp the result. |
|
|
|
Qube Software Limited © 2000-2004
|
|