87 buf,
sizeof(buf),
"RGBA=[%u,%u,%u,%u]", static_cast<unsigned int>(
c.R),
88 static_cast<unsigned int>(
c.G), static_cast<unsigned int>(
c.B),
89 static_cast<unsigned int>(
c.A));
97 o <<
c.R <<
c.G <<
c.B <<
c.A;
103 i >>
c.R >>
c.G >>
c.B >>
c.A;
112 buf,
sizeof(buf),
"RGBAf=[%f,%f,%f,%f]",
c.R,
c.G,
c.B,
c.A);
120 o <<
c.R <<
c.G <<
c.B <<
c.A;
126 i >>
c.R >>
c.G >>
c.B >>
c.A;
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
TColor & operator+=(const TColor &other)
bool operator==(const mrpt::utils::TCamera &a, const mrpt::utils::TCamera &b)
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
TColor & operator-=(const TColor &other)
TColor operator-(const TColor &first, const TColor &second)
Pairwise substraction of their corresponding RGBA members.
CStream & operator<<(mrpt::utils::CStream &s, const char *a)
TColor operator+(const TColor &first, const TColor &second)
Pairwise addition of their corresponding RGBA members.
A RGB color - floats in the range [0,1].
CStream & operator>>(mrpt::utils::CStream &in, char *a)
int sprintf(char *buf, size_t bufSize, const char *format,...) noexcept MRPT_printf_format_check(3
An OS-independent version of sprintf (Notice the bufSize param, which may be ignored in some compiler...
TColor & operator=(const TColor &other)