29 constexpr
inline explicit TColor(
const unsigned int color_RGB_24bit)
50 inline operator unsigned int(
void)
const 52 return (((
unsigned int)
R) << 16) | (((
unsigned int)
G) << 8) |
B;
68 std::ostream&
operator<<(std::ostream& o,
const TColor&
c);
85 :
R(col.
R * (1.f / 255)),
86 G(col.
G * (1.f / 255)),
87 B(col.
B * (1.f / 255)),
88 A(col.
A * (1.f / 255))
GLclampf GLclampf GLclampf alpha
static constexpr TColor blue()
constexpr TColor(const unsigned int color_RGB_24bit, const uint8_t alpha)
TColor operator+(const TColor &first, const TColor &second)
Pairwise addition of their corresponding RGBA members.
TColor & operator-=(const TColor &other)
static constexpr TColor gray()
static constexpr TColor black()
constexpr TColor(uint8_t r, uint8_t g, uint8_t b, uint8_t alpha=255)
static constexpr TColor green()
bool operator==(const mrpt::img::TCamera &a, const mrpt::img::TCamera &b)
static constexpr TColor red()
Predefined colors.
Virtual base class for "archives": classes abstracting I/O streams.
GLdouble GLdouble GLdouble r
constexpr TColor(const unsigned int color_RGB_24bit)
TColorf(float r=0, float g=0, float b=0, float alpha=1.0f)
TColorf(const TColor &col)
A RGB color - floats in the range [0,1].
TColor operator-(const TColor &first, const TColor &second)
Pairwise substraction of their corresponding RGBA members.
TColor & operator=(const TColor &other)
TColor & operator+=(const TColor &other)
std::ostream & operator<<(std::ostream &o, const TColor &c)
static constexpr TColor white()
mrpt::serialization::CArchive & operator>>(mrpt::serialization::CArchive &i, TColor &c)