aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llwlparamset.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llwlparamset.cpp
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llwlparamset.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/linden/indra/newview/llwlparamset.cpp b/linden/indra/newview/llwlparamset.cpp
index d6e1f03..5cb93fb 100644
--- a/linden/indra/newview/llwlparamset.cpp
+++ b/linden/indra/newview/llwlparamset.cpp
@@ -80,7 +80,7 @@ void LLWLParamSet::update(LLGLSLShader * shader) const
80 i != mParamValues.endMap(); 80 i != mParamValues.endMap();
81 ++i) 81 ++i)
82 { 82 {
83 const LLString& param = i->first; 83 const std::string& param = i->first;
84 84
85 if( param == "star_brightness" || param == "preset_num" || param == "sun_angle" || 85 if( param == "star_brightness" || param == "preset_num" || param == "sun_angle" ||
86 param == "east_angle" || param == "enable_cloud_scroll" || 86 param == "east_angle" || param == "enable_cloud_scroll" ||
@@ -130,7 +130,7 @@ void LLWLParamSet::update(LLGLSLShader * shader) const
130 } 130 }
131} 131}
132 132
133void LLWLParamSet::set(const char * paramName, float x) 133void LLWLParamSet::set(const std::string& paramName, float x)
134{ 134{
135 // handle case where no array 135 // handle case where no array
136 if(mParamValues[paramName].isReal()) 136 if(mParamValues[paramName].isReal())
@@ -146,19 +146,19 @@ void LLWLParamSet::set(const char * paramName, float x)
146 } 146 }
147} 147}
148 148
149void LLWLParamSet::set(const char * paramName, float x, float y) { 149void LLWLParamSet::set(const std::string& paramName, float x, float y) {
150 mParamValues[paramName][0] = x; 150 mParamValues[paramName][0] = x;
151 mParamValues[paramName][1] = y; 151 mParamValues[paramName][1] = y;
152} 152}
153 153
154void LLWLParamSet::set(const char * paramName, float x, float y, float z) 154void LLWLParamSet::set(const std::string& paramName, float x, float y, float z)
155{ 155{
156 mParamValues[paramName][0] = x; 156 mParamValues[paramName][0] = x;
157 mParamValues[paramName][1] = y; 157 mParamValues[paramName][1] = y;
158 mParamValues[paramName][2] = z; 158 mParamValues[paramName][2] = z;
159} 159}
160 160
161void LLWLParamSet::set(const char * paramName, float x, float y, float z, float w) 161void LLWLParamSet::set(const std::string& paramName, float x, float y, float z, float w)
162{ 162{
163 mParamValues[paramName][0] = x; 163 mParamValues[paramName][0] = x;
164 mParamValues[paramName][1] = y; 164 mParamValues[paramName][1] = y;
@@ -166,7 +166,7 @@ void LLWLParamSet::set(const char * paramName, float x, float y, float z, float
166 mParamValues[paramName][3] = w; 166 mParamValues[paramName][3] = w;
167} 167}
168 168
169void LLWLParamSet::set(const char * paramName, const float * val) 169void LLWLParamSet::set(const std::string& paramName, const float * val)
170{ 170{
171 mParamValues[paramName][0] = val[0]; 171 mParamValues[paramName][0] = val[0];
172 mParamValues[paramName][1] = val[1]; 172 mParamValues[paramName][1] = val[1];
@@ -174,7 +174,7 @@ void LLWLParamSet::set(const char * paramName, const float * val)
174 mParamValues[paramName][3] = val[3]; 174 mParamValues[paramName][3] = val[3];
175} 175}
176 176
177void LLWLParamSet::set(const char * paramName, const LLVector4 & val) 177void LLWLParamSet::set(const std::string& paramName, const LLVector4 & val)
178{ 178{
179 mParamValues[paramName][0] = val.mV[0]; 179 mParamValues[paramName][0] = val.mV[0];
180 mParamValues[paramName][1] = val.mV[1]; 180 mParamValues[paramName][1] = val.mV[1];
@@ -182,7 +182,7 @@ void LLWLParamSet::set(const char * paramName, const LLVector4 & val)
182 mParamValues[paramName][3] = val.mV[3]; 182 mParamValues[paramName][3] = val.mV[3];
183} 183}
184 184
185void LLWLParamSet::set(const char * paramName, const LLColor4 & val) 185void LLWLParamSet::set(const std::string& paramName, const LLColor4 & val)
186{ 186{
187 mParamValues[paramName][0] = val.mV[0]; 187 mParamValues[paramName][0] = val.mV[0];
188 mParamValues[paramName][1] = val.mV[1]; 188 mParamValues[paramName][1] = val.mV[1];
@@ -190,7 +190,7 @@ void LLWLParamSet::set(const char * paramName, const LLColor4 & val)
190 mParamValues[paramName][3] = val.mV[3]; 190 mParamValues[paramName][3] = val.mV[3];
191} 191}
192 192
193LLVector4 LLWLParamSet::getVector(const char * paramName, bool& error) 193LLVector4 LLWLParamSet::getVector(const std::string& paramName, bool& error)
194{ 194{
195 195
196 // test to see if right type 196 // test to see if right type
@@ -211,7 +211,7 @@ LLVector4 LLWLParamSet::getVector(const char * paramName, bool& error)
211 return val; 211 return val;
212} 212}
213 213
214F32 LLWLParamSet::getFloat(const char * paramName, bool& error) 214F32 LLWLParamSet::getFloat(const std::string& paramName, bool& error)
215{ 215{
216 216
217 // test to see if right type 217 // test to see if right type