47 #ifndef AI_COLOR4D_H_INC
48 #define AI_COLOR4D_H_INC
51 # pragma GCC system_header
62 template <
typename TReal>
65 aiColor4t() AI_NO_EXCEPT : r(), g(), b(), a() {}
66 aiColor4t (TReal _r, TReal _g, TReal _b, TReal _a)
67 : r(_r), g(_g), b(_b), a(_a) {}
68 explicit aiColor4t (TReal _r) : r(_r), g(_r), b(_r), a(_r) {}
69 aiColor4t (
const aiColor4t& o) =
default;
72 const aiColor4t& operator += (
const aiColor4t& o);
73 const aiColor4t& operator -= (
const aiColor4t& o);
74 const aiColor4t& operator *= (TReal f);
75 const aiColor4t& operator /= (TReal f);
78 bool operator == (
const aiColor4t& other)
const;
79 bool operator != (
const aiColor4t& other)
const;
80 bool operator < (
const aiColor4t& other)
const;
83 inline TReal operator[](
unsigned int i)
const;
84 inline TReal& operator[](
unsigned int i);
87 inline bool IsBlack()
const;
101 #endif // __cplusplus
103 #endif // AI_COLOR4D_H_INC