37 #ifndef INCLUDED_IMATHCOLOR_H
38 #define INCLUDED_IMATHCOLOR_H
260 std::ostream & operator << (std::ostream &s, const Color4<T> &
v);
569 return (
const T *) &
r;
577 return r == v.
r &&
g == v.
g &&
b == v.
b &&
a == v.
a;
585 return r != v.
r ||
g != v.
g ||
b != v.
b ||
a != v.
a;
717 operator << (std::ostream &s, const Color4<T> &
v)
719 return s <<
'(' <<
v.r <<
' ' <<
v.g <<
' ' <<
v.b <<
' ' <<
v.a <<
')';
726 template <
class S,
class T>
736 #endif // INCLUDED_IMATHCOLOR_H
#define IMATH_INTERNAL_NAMESPACE_HEADER_EXIT
Color3 operator+(const Color3 &c) const
const Color4 & operator-=(const Color4 &v)
Mat3< typename promote< S, T >::type > operator*(S scalar, const Mat3< T > &m)
Multiply each element of the given matrix by scalar and return the result.
const Color4 & operator*=(const Color4 &v)
Color4 operator+(const Color4 &v) const
Color4 operator/(const Color4 &v) const
#define IMATH_INTERNAL_NAMESPACE_HEADER_ENTER
GLboolean GLboolean GLboolean GLboolean a
Color4< unsigned char > Color4c
const Color3 & operator/=(const Color3 &c)
void setValue(S a, S b, S c, S d)
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
const Color4 & operator+=(const Color4 &v)
bool operator==(const Color4< S > &v) const
GLubyte GLubyte GLubyte GLubyte w
Color3 operator*(const Color3 &c) const
Color4< unsigned char > C4c
bool operator!=(const Color4< S > &v) const
const Color3 & operator=(const Color3 &c)
const Color3 & operator+=(const Color3 &c)
GLdouble GLdouble GLdouble b
const Color3 & operator*=(const Color3 &c)
const Color3 & operator-=(const Color3 &c)
Color3 operator/(const Color3 &c) const
GLdouble GLdouble GLdouble r
Color4 operator*(const Color4 &v) const
Color3< unsigned char > Color3c
const Color4 & operator=(const Color4 &v)
static unsigned int dimensions()
const Color4 & operator/=(const Color4 &v)
static T baseTypeEpsilon()
Color3< unsigned char > C3c
static T baseTypeSmallest()