diff options
Diffstat (limited to 'linden/indra/newview/llwaterparammanager.h')
-rw-r--r-- | linden/indra/newview/llwaterparammanager.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/linden/indra/newview/llwaterparammanager.h b/linden/indra/newview/llwaterparammanager.h index 6c9ce3e..872725e 100644 --- a/linden/indra/newview/llwaterparammanager.h +++ b/linden/indra/newview/llwaterparammanager.h | |||
@@ -44,12 +44,12 @@ const F32 WATER_FOG_LIGHT_CLAMP = 0.3f; | |||
44 | struct WaterColorControl { | 44 | struct WaterColorControl { |
45 | 45 | ||
46 | F32 mR, mG, mB, mA, mI; /// the values | 46 | F32 mR, mG, mB, mA, mI; /// the values |
47 | char const * mName; /// name to use to dereference params | 47 | std::string mName; /// name to use to dereference params |
48 | std::string mSliderName; /// name of the slider in menu | 48 | std::string mSliderName; /// name of the slider in menu |
49 | bool mHasSliderName; /// only set slider name for true color types | 49 | bool mHasSliderName; /// only set slider name for true color types |
50 | 50 | ||
51 | inline WaterColorControl(F32 red, F32 green, F32 blue, F32 alpha, | 51 | inline WaterColorControl(F32 red, F32 green, F32 blue, F32 alpha, |
52 | F32 intensity, char const * n, char const * sliderName = "") | 52 | F32 intensity, const std::string& n, const std::string& sliderName = LLStringUtil::null) |
53 | : mR(red), mG(green), mB(blue), mA(alpha), mI(intensity), mName(n), mSliderName(sliderName) | 53 | : mR(red), mG(green), mB(blue), mA(alpha), mI(intensity), mName(n), mSliderName(sliderName) |
54 | { | 54 | { |
55 | // if there's a slider name, say we have one | 55 | // if there's a slider name, say we have one |
@@ -104,10 +104,10 @@ struct WaterVector3Control | |||
104 | F32 mY; | 104 | F32 mY; |
105 | F32 mZ; | 105 | F32 mZ; |
106 | 106 | ||
107 | char const * mName; | 107 | std::string mName; |
108 | 108 | ||
109 | // basic constructor | 109 | // basic constructor |
110 | inline WaterVector3Control(F32 valX, F32 valY, F32 valZ, char const * n) | 110 | inline WaterVector3Control(F32 valX, F32 valY, F32 valZ, const std::string& n) |
111 | : mX(valX), mY(valY), mZ(valZ), mName(n) | 111 | : mX(valX), mY(valY), mZ(valZ), mName(n) |
112 | { | 112 | { |
113 | } | 113 | } |
@@ -133,10 +133,10 @@ struct WaterVector2Control | |||
133 | F32 mX; | 133 | F32 mX; |
134 | F32 mY; | 134 | F32 mY; |
135 | 135 | ||
136 | char const * mName; | 136 | std::string mName; |
137 | 137 | ||
138 | // basic constructor | 138 | // basic constructor |
139 | inline WaterVector2Control(F32 valX, F32 valY, char const * n) | 139 | inline WaterVector2Control(F32 valX, F32 valY, const std::string& n) |
140 | : mX(valX), mY(valY), mName(n) | 140 | : mX(valX), mY(valY), mName(n) |
141 | { | 141 | { |
142 | } | 142 | } |
@@ -159,10 +159,10 @@ struct WaterVector2Control | |||
159 | struct WaterFloatControl | 159 | struct WaterFloatControl |
160 | { | 160 | { |
161 | F32 mX; | 161 | F32 mX; |
162 | char const * mName; | 162 | std::string mName; |
163 | F32 mMult; | 163 | F32 mMult; |
164 | 164 | ||
165 | inline WaterFloatControl(F32 val, char const * n, F32 m=1.0f) | 165 | inline WaterFloatControl(F32 val, const std::string& n, F32 m=1.0f) |
166 | : mX(val), mName(n), mMult(m) | 166 | : mX(val), mName(n), mMult(m) |
167 | { | 167 | { |
168 | } | 168 | } |
@@ -189,10 +189,10 @@ struct WaterFloatControl | |||
189 | struct WaterExpFloatControl | 189 | struct WaterExpFloatControl |
190 | { | 190 | { |
191 | F32 mExp; | 191 | F32 mExp; |
192 | char const * mName; | 192 | std::string mName; |
193 | F32 mBase; | 193 | F32 mBase; |
194 | 194 | ||
195 | inline WaterExpFloatControl(F32 val, char const * n, F32 b) | 195 | inline WaterExpFloatControl(F32 val, const std::string& n, F32 b) |
196 | : mExp(val), mName(n), mBase(b) | 196 | : mExp(val), mName(n), mBase(b) |
197 | { | 197 | { |
198 | } | 198 | } |
@@ -225,13 +225,13 @@ public: | |||
225 | ~LLWaterParamManager(); | 225 | ~LLWaterParamManager(); |
226 | 226 | ||
227 | /// load a preset file | 227 | /// load a preset file |
228 | void loadAllPresets(const LLString & fileName); | 228 | void loadAllPresets(const std::string & fileName); |
229 | 229 | ||
230 | /// load an individual preset into the sky | 230 | /// load an individual preset into the sky |
231 | void loadPreset(const LLString & name); | 231 | void loadPreset(const std::string & name); |
232 | 232 | ||
233 | /// save the parameter presets to file | 233 | /// save the parameter presets to file |
234 | void savePreset(const LLString & name); | 234 | void savePreset(const std::string & name); |
235 | 235 | ||
236 | /// send the parameters to the shaders | 236 | /// send the parameters to the shaders |
237 | void propagateParameters(void); | 237 | void propagateParameters(void); |