#include <rgba.h>
Nevrax France
Definition at line 361 of file rgba.h.
Public Member Functions | |
void | blendFromui (CBGRA &c0, CBGRA &c1, uint factor) |
CBGRA (uint8 r, uint8 g, uint8 b, uint8 a=255) | |
CBGRA (CRGBA c) | |
CBGRA () | |
Default constructor. do nothing. | |
uint | getPacked () const |
operator CRGBA () | |
bool | operator< (const CBGRA &c) const |
bool | operator== (const CBGRA &c) const |
void | serial (class NLMISC::IStream &f) |
void | set (uint8 r, uint8 g, uint8 b, uint8 a) |
Data Fields | |
uint8 | A |
Alpha componant. | |
uint8 | B |
Blue componant. | |
uint8 | G |
Green componant. | |
uint8 | R |
Red componant. |
|
Default constructor. do nothing.
Definition at line 366 of file rgba.h.
00366 {}; |
|
Constructor from a CRGBA
Definition at line 372 of file rgba.h. References NLMISC::CRGBA::A, NLMISC::CRGBA::B, NLMISC::CRGBA::G, and NLMISC::CRGBA::R.
|
|
Constructor.
Definition at line 387 of file rgba.h.
|
|
Blend two colors.
Definition at line 597 of file rgba.cpp. References A, B, G, R, and uint.
|
|
Return a packed pixel Definition at line 401 of file rgba.h. References uint. Referenced by operator<().
|
|
Cast operator to CRGBA. Definition at line 393 of file rgba.h.
00394 {
00395 return CRGBA (R, G, B, A);
00396 }
|
|
Comparison operator. Definition at line 409 of file rgba.h. References getPacked().
00410 { 00411 return getPacked()<c.getPacked(); 00412 } |
|
Equality operator. Definition at line 417 of file rgba.h.
|
|
Serialisation.
Definition at line 581 of file rgba.cpp.
00582 { 00583 f.serial (B); 00584 f.serial (G); 00585 f.serial (R); 00586 f.serial (A); 00587 } |
|
Set colors.
Definition at line 589 of file rgba.cpp.
|
|
Alpha componant.
Definition at line 452 of file rgba.h. Referenced by blendFromui(), and operator==(). |
|
Blue componant.
Definition at line 450 of file rgba.h. Referenced by blendFromui(), and operator==(). |
|
Green componant.
Definition at line 448 of file rgba.h. Referenced by blendFromui(), and operator==(). |
|
Red componant.
Definition at line 446 of file rgba.h. Referenced by blendFromui(), and operator==(). |