cf_pixel_to_int_rgba¶
Category: graphics
GitHub: cute_color.h
Converts a CF_Pixel to an integer in 0xRRGGBBAA format.
uint32_t cf_pixel_to_int_rgba(CF_Pixel p) { return ((uint32_t)p.colors.r << 24) | ((uint32_t)p.colors.g << 16) | ((uint32_t)p.colors.b << 8) | p.colors.a; }
| Parameters | Description |
|---|---|
p |
The pixel. |
Return Value¶
Returns an unsigned 32-bit integer in 0xRRGGBBAA format.