aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llwlparammanager.h
diff options
context:
space:
mode:
authorArmin Weatherwax2010-08-26 16:24:58 +0200
committerMcCabe Maxsted2010-08-29 01:25:08 -0700
commitd9c9fbdd0d4c2638b3aab5b2db0f8cf6d48a928e (patch)
treefdb7a77139e07e168008cfe2c28e14294c3788ef /linden/indra/newview/llwlparammanager.h
parentKatharine Berry: Allow loading of windlight parameters from arbitrary XML str... (diff)
downloadmeta-impy-d9c9fbdd0d4c2638b3aab5b2db0f8cf6d48a928e.zip
meta-impy-d9c9fbdd0d4c2638b3aab5b2db0f8cf6d48a928e.tar.gz
meta-impy-d9c9fbdd0d4c2638b3aab5b2db0f8cf6d48a928e.tar.bz2
meta-impy-d9c9fbdd0d4c2638b3aab5b2db0f8cf6d48a928e.tar.xz
Katharine Berry: Can load WindLight settings from LLSD notecards ending in ".wl"
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llwlparammanager.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/linden/indra/newview/llwlparammanager.h b/linden/indra/newview/llwlparammanager.h
index 141af3c..c506c11 100644
--- a/linden/indra/newview/llwlparammanager.h
+++ b/linden/indra/newview/llwlparammanager.h
@@ -40,6 +40,9 @@
40#include "llwldaycycle.h" 40#include "llwldaycycle.h"
41#include "llviewercamera.h" 41#include "llviewercamera.h"
42 42
43#include "llassettype.h" // Ugh.
44class LLVFS;
45
43class LLGLSLShader; 46class LLGLSLShader;
44 47
45class LLWLPresetsObserver 48class LLWLPresetsObserver
@@ -143,11 +146,14 @@ public:
143 void savePresets(const std::string & fileName); 146 void savePresets(const std::string & fileName);
144 147
145 /// load an individual preset into the sky 148 /// load an individual preset into the sky
146 void loadPreset(const std::string & name,bool propogate=true); 149 void loadPreset(const std::string & name, bool propogate=true);
147 150
148 /// load an individual preset into the sky from an LLSD stream 151 /// load an individual preset into the sky from an LLSD stream
149 /// Returns whether the stream was actually reasonable XML to load from. 152 /// Returns whether the stream was actually reasonable XML to load from.
150 bool loadPresetXML(const std::string& name, std::istream& preset_stream, bool check_if_real=false); 153 bool loadPresetXML(const std::string& name, std::istream& preset_stream, bool propogate=false, bool check_if_real=false);
154
155 /// Load an individual preset from a notecard.
156 void loadPresetNotecard(const std::string& name, const LLUUID& asset_id, const LLUUID& inv_id);
151 157
152 /// save the parameter presets to file 158 /// save the parameter presets to file
153 void savePreset(const std::string & name); 159 void savePreset(const std::string & name);
@@ -274,6 +280,8 @@ private:
274 280
275 static std::vector<LLWLPresetsObserver*> sObservers; 281 static std::vector<LLWLPresetsObserver*> sObservers;
276 282
283 static void loadWindlightNotecard(LLVFS *vfs, const LLUUID& asset_id, LLAssetType::EType asset_type, void *user_data, S32 status, LLExtStat ext_status);
284
277}; 285};
278 286
279inline F32 LLWLParamManager::getDomeOffset(void) const 287inline F32 LLWLParamManager::getDomeOffset(void) const