46 inline explicit Color1(
float v) : value(v) {
67 explicit Color1(
const class Color1unorm8& other);
78 return Color1(value + other);
97 return Color1(value - other);
109 value *= other.
value;
124 value /= other.
value;
129 return Color1(value * other);
137 return Color1(value / other);
154 return (
size_t)(value * 0xFFFFFF);
unorm8
Definition: unorm8.h:33
static size_t hashCode(const G3D::Color1 &key)
Definition: Color1.h:162
Color1 min(const Color1 &other) const
Definition: Color1.h:144
bool operator>(const Color1 &) const
bool operator>=(const Color1 &) const
Color1()
Definition: Color1.h:42
static const Color1 & zero()
Definition: Color1.cpp:27
Color1 & operator*=(const Color1 other)
Definition: Color1.h:108
Color1 operator*(const Color1 &other) const
Definition: Color1.h:104
Color1 & operator+=(const Color1 other)
Definition: Color1.h:81
Color1 & operator/=(const float other)
Definition: Color1.h:118
static const Color1 & one()
Definition: Color1.cpp:21
void serialize(class BinaryOutput &bo) const
Definition: Color1.cpp:48
Color1 & operator/=(const Color1 other)
Definition: Color1.h:123
Definition: HashTrait.h:105
Color1 & operator-=(const Color1 other)
Definition: Color1.h:86
bool isZero() const
Definition: Color1.h:52
T max(const T &x, const T &y)
Definition: g3dmath.h:320
Color1 operator-() const
Definition: Color1.h:100
T min(const T &x, const T &y)
Definition: g3dmath.h:305
class Color3 rgb() const
Definition: Color1.cpp:38
Color1(float v)
Definition: Color1.h:46
Color1 max(const Color1 &other) const
Definition: Color1.h:140
G3D::Color1 operator*(float f, G3D::Color1 c)
Definition: Color1.h:167
bool operator<=(const Color1 &) const
size_t hashCode() const
Definition: Color1.h:153
Color1 lerp(const Color1 &other, float a) const
Definition: Color1.h:148
Color1 operator+(const Color1 &other) const
Definition: Color1.h:72
Color1(unorm8 v)
Definition: Color1.h:49
Definition: BinaryOutput.h:52
void deserialize(class BinaryInput &bi)
Definition: Color1.cpp:43
Color1 & operator*=(const float other)
Definition: Color1.h:113
bool isOne() const
Definition: Color1.h:56
bool operator<(const Color1 &) const
#define const
Definition: zconf.h:217
Color1 operator/(const Color1 &other) const
Definition: Color1.h:132
float value
Definition: Color1.h:37