46 #ifndef AI_COLOR4D_H_INC 47 #define AI_COLOR4D_H_INC 57 template <
typename TReal>
61 aiColor4t () : r(), g(), b(), a() {}
62 aiColor4t (TReal _r, TReal _g, TReal _b, TReal _a)
63 : r(_r), g(_g), b(_b), a(_a) {}
64 explicit aiColor4t (TReal _r) : r(_r), g(_r), b(_r), a(_r) {}
65 aiColor4t (
const aiColor4t& o)
66 : r(o.r), g(o.g), b(o.b), a(o.a) {}
70 const aiColor4t& operator += (
const aiColor4t& o);
71 const aiColor4t& operator -= (
const aiColor4t& o);
72 const aiColor4t& operator *= (TReal f);
73 const aiColor4t& operator /= (TReal f);
77 bool operator == (
const aiColor4t& other)
const;
78 bool operator != (
const aiColor4t& other)
const;
79 bool operator < (
const aiColor4t& other)
const;
82 inline TReal operator[](
unsigned int i)
const;
83 inline TReal& operator[](
unsigned int i);
86 inline bool IsBlack()
const;
102 #endif // __cplusplus 104 #endif // AI_COLOR4D_H_INC Assimp build configuration setup.