Stores a 16-bit ARGB color value, where the alpha occupies 1 bit, and each color channel occupies 5 bits. The type corresponds to the scalar type of an Altivec __vector pixel.
Public Member Functions | |
pixel (unsigned short alpha, unsigned short red, unsigned short green, unsigned short blue) | |
Constructs a pixel with alpha, red, green and blue values. | |
Public Attributes | |
unsigned short | a: 1 |
Alpha value, 0 or 1. | |
unsigned short | b: 5 |
Blue value, 0 to 31. | |
unsigned short | g: 5 |
Green value, 0 to 31. | |
unsigned short | r: 5 |
Red value, 0 to 31. | |
Related Functions | |
(Note that these are not member functions.) | |
bool | operator!= (pixel left, pixel right) |
Tests whether left is not equal to right. | |
bool | operator== (pixel left, pixel right) |
Tests whether left is equal to right. |