diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/llmath/v4color.cpp | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2 meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz |
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/llmath/v4color.cpp')
-rw-r--r-- | linden/indra/llmath/v4color.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/linden/indra/llmath/v4color.cpp b/linden/indra/llmath/v4color.cpp index b1884b7..8e6907e 100644 --- a/linden/indra/llmath/v4color.cpp +++ b/linden/indra/llmath/v4color.cpp | |||
@@ -36,7 +36,7 @@ | |||
36 | #include "v4color.h" | 36 | #include "v4color.h" |
37 | #include "v4coloru.h" | 37 | #include "v4coloru.h" |
38 | #include "v3color.h" | 38 | #include "v3color.h" |
39 | //#include "vmath.h" | 39 | #include "v4math.h" |
40 | #include "llmath.h" | 40 | #include "llmath.h" |
41 | 41 | ||
42 | // LLColor4 | 42 | // LLColor4 |
@@ -153,6 +153,14 @@ LLColor4::LLColor4(const LLColor4U& color4u) | |||
153 | mV[VW] = color4u.mV[VW] * SCALE; | 153 | mV[VW] = color4u.mV[VW] * SCALE; |
154 | } | 154 | } |
155 | 155 | ||
156 | LLColor4::LLColor4(const LLVector4& vector4) | ||
157 | { | ||
158 | mV[VX] = vector4.mV[VX]; | ||
159 | mV[VY] = vector4.mV[VY]; | ||
160 | mV[VZ] = vector4.mV[VZ]; | ||
161 | mV[VW] = vector4.mV[VW]; | ||
162 | } | ||
163 | |||
156 | const LLColor4& LLColor4::setVec(const LLColor4U& color4u) | 164 | const LLColor4& LLColor4::setVec(const LLColor4U& color4u) |
157 | { | 165 | { |
158 | const F32 SCALE = 1.f/255.f; | 166 | const F32 SCALE = 1.f/255.f; |