14 #define I3 std::array<int,3>
15 #define F3 std::array<float,3>
27 FmColor(
float r = 0.0f,
float g = 0.0f,
float b = 0.0f) :
F3({r,g,b}) {}
37 std::streamsize oldPrec = os.precision(7);
38 os << color[0] <<
' ' << color[1] <<
' ' << color[2];
39 os.precision(oldPrec);
46 is >> tmp[0] >> tmp[1] >> tmp[2];
#define FF
Definition: FmColor.H:16
std::ostream & operator<<(std::ostream &os, const FmColor &color)
Definition: FmColor.H:35
#define F3
Definition: FmColor.H:15
#define I3
Definition: FmColor.H:14
std::istream & operator>>(std::istream &is, FmColor &color)
Definition: FmColor.H:43
Representation of a RGB color by floats in range [0.0,1.0].
Definition: FmColor.H:24
FmColor(float r=0.0f, float g=0.0f, float b=0.0f)
Default constructor.
Definition: FmColor.H:27
FmColor(const F3 &c)
Copy constructor.
Definition: FmColor.H:29
FmColor(const I3 &c)
Conversion from integer representation in range [0,255].
Definition: FmColor.H:31