44 #ifndef AI_COLOR4D_H_INC 45 #define AI_COLOR4D_H_INC 47 #include "./Compiler/pushpack1.h" 55 template <
typename TReal>
59 aiColor4t () : r(), g(), b(), a() {}
60 aiColor4t (TReal _r, TReal _g, TReal _b, TReal _a)
61 : r(_r), g(_g), b(_b), a(_a) {}
62 aiColor4t (TReal _r) : r(_r), g(_r), b(_r), a(_r) {}
63 aiColor4t (
const aiColor4t& o)
64 : r(o.r), g(o.g), b(o.b), a(o.a) {}
68 const aiColor4t& operator += (
const aiColor4t& o);
69 const aiColor4t& operator -= (
const aiColor4t& o);
70 const aiColor4t& operator *= (TReal f);
71 const aiColor4t& operator /= (TReal f);
75 bool operator == (
const aiColor4t& other)
const;
76 bool operator != (
const aiColor4t& other)
const;
77 bool operator < (
const aiColor4t& other)
const;
80 inline TReal operator[](
unsigned int i)
const;
81 inline TReal& operator[](
unsigned int i);
84 inline bool IsBlack()
const;
100 #endif // __cplusplus 102 #include "./Compiler/poppack1.h" 104 #endif // AI_COLOR4D_H_INC