Rerun C++ SDK
|
Datatype: An RGBA color with unmultiplied/separate alpha, in sRGB gamma space with linear alpha. More...
#include <rerun/datatypes/rgba32.hpp>
Public Member Functions | |
Rgba32 (uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) | |
Construct Rgba32 from unmultiplied RGBA values. | |
Rgba32 (const uint8_t(&_rgba)[4]) | |
Construct Rgba32 from unmultiplied RGBA values. | |
Rgba32 (const uint8_t(&_rgb)[3]) | |
Construct Rgba32 from RGB values, setting alpha to 255. | |
uint8_t | r () const |
uint8_t | g () const |
uint8_t | b () const |
uint8_t | a () const |
Rgba32 (uint32_t rgba_) | |
Rgba32 & | operator= (uint32_t rgba_) |
Public Attributes | |
uint32_t | rgba |
Datatype: An RGBA color with unmultiplied/separate alpha, in sRGB gamma space with linear alpha.
The color is stored as a 32-bit integer, where the most significant byte is R
and the least significant byte is A
.