32 #ifndef Color_INCLUDE_ONCE 33 #define Color_INCLUDE_ONCE 44 c.
r() = float(((color >> 24) & 0xFF) / 255.0f);
45 c.
g() = float(((color >> 16) & 0xFF) / 255.0f);
46 c.
b() = float(((color >> 8) & 0xFF) / 255.0f);
47 c.
a() = float(((color >> 0) & 0xFF) / 255.0f);
53 static const fvec4 invalid_color =
fvec4(0, 0, 0, -1);
Vector4< float > fvec4
A 4 components vector with float precision.
const T_Scalar & r() const
The Vector4 class is a template class that implements a generic 4 components vector, see also vl::fvec4, vl::dvec4, vl::uvec4, vl::ivec4, vl::svec4, vl::usvec4, vl::bvec4, vl::ubvec4.
Visualization Library main namespace.
const T_Scalar & g() const
bool isValidColor(const fvec4 &color)
const T_Scalar & b() const
fvec4 makeColor(unsigned int color)
const T_Scalar & a() const