mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-17 13:01:42 +00:00
Changed: Added set8888() method to CGRBA
This commit is contained in:
parent
b71fad84c6
commit
3d051b2d6f
1 changed files with 11 additions and 0 deletions
|
@ -177,6 +177,17 @@ public:
|
|||
B= (B<<3) + (B>>2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the RGBA fields with a 32 bits 8888 pixel.
|
||||
*/
|
||||
void set8888(uint32 col)
|
||||
{
|
||||
R = col & 255;
|
||||
G = (col >> 8) & 255;
|
||||
B = (col >> 16) & 255;
|
||||
A = (col >> 24) & 255;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Compute in this the average of 2 RGBA.
|
||||
|
|
Loading…
Reference in a new issue