diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lightshare.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/linden/indra/newview/lightshare.h b/linden/indra/newview/lightshare.h index 1df2084..3561a91 100644 --- a/linden/indra/newview/lightshare.h +++ b/linden/indra/newview/lightshare.h | |||
@@ -37,6 +37,21 @@ | |||
37 | struct Meta7WindlightPacket; | 37 | struct Meta7WindlightPacket; |
38 | 38 | ||
39 | 39 | ||
40 | typedef enum wl_scope | ||
41 | { | ||
42 | WL_SCOPE_USER, | ||
43 | WL_SCOPE_REGION, | ||
44 | WL_SCOPE_PARCEL, | ||
45 | WL_SCOPE_RLV | ||
46 | } WLScope; | ||
47 | |||
48 | struct WLCombined | ||
49 | { | ||
50 | LLWaterParamSet water; | ||
51 | LLWLParamSet sky; | ||
52 | BOOL enabled; | ||
53 | }; | ||
54 | |||
40 | // Encapsulates a "Windlight" (LightShare) message sent from the | 55 | // Encapsulates a "Windlight" (LightShare) message sent from the |
41 | // region, allowing the settings to be applied at a later time. | 56 | // region, allowing the settings to be applied at a later time. |
42 | // | 57 | // |
@@ -51,6 +66,13 @@ public: | |||
51 | LIGHTSHARE_ALWAYS = 2, | 66 | LIGHTSHARE_ALWAYS = 2, |
52 | }; | 67 | }; |
53 | 68 | ||
69 | // The name of the preset where the region settings are stored. | ||
70 | static const std::string sRegionPresetName; | ||
71 | // The name of the preset where the parcel settings are stored. | ||
72 | static const std::string sParcelPresetName; | ||
73 | // The name of the preset where the RLV settings are stored. | ||
74 | static const std::string sRLVPresetName; | ||
75 | |||
54 | // Constructs a new LightShare instance from a GenericMessage | 76 | // Constructs a new LightShare instance from a GenericMessage |
55 | // with the "Windlight" method, such as those sent by a | 77 | // with the "Windlight" method, such as those sent by a |
56 | // Lightshare-enabled OpenSim region. | 78 | // Lightshare-enabled OpenSim region. |
@@ -72,6 +94,8 @@ public: | |||
72 | // (But there's no real validation yet, so this is always true.) | 94 | // (But there's no real validation yet, so this is always true.) |
73 | bool isValid(); | 95 | bool isValid(); |
74 | 96 | ||
97 | static void apply(LLWaterParamSet * newWater, LLUUID *newWaterNormal, LLWLParamSet *newSky, WLScope scope); | ||
98 | |||
75 | private: | 99 | private: |
76 | static LLTimer* sIgnoreTimer; | 100 | static LLTimer* sIgnoreTimer; |
77 | static bool sIgnoreRegion; | 101 | static bool sIgnoreRegion; |
@@ -100,6 +124,9 @@ private: | |||
100 | // Returns true if the ignore timer has expired (i.e. new settings | 124 | // Returns true if the ignore timer has expired (i.e. new settings |
101 | // should not be ignored anymore). | 125 | // should not be ignored anymore). |
102 | static bool ignoreTimerHasExpired(); | 126 | static bool ignoreTimerHasExpired(); |
127 | |||
128 | static void mergeWaterSets(LLWaterParamSet* thisSet, LLWaterParamSet* oldSet); | ||
129 | static void mergeWLSets(LLWLParamSet* thisSet, LLWLParamSet* oldSet); | ||
103 | }; | 130 | }; |
104 | 131 | ||
105 | #endif | 132 | #endif |