Use configured resolution for login/outgame/ingame
[ryzomcore.git] / ryzom / client / src / weather_setup_client.h
blob7e8215647279ad543d6849bea9d03a855ddf3ecd
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef CL_WEATHER_SETUP
20 #define CL_WEATHER_SETUP
22 #include "nel/misc/rgba.h"
23 #include "client_sheets/weather_setup_sheet.h"
24 #include "nel/misc/string_mapper.h"
25 #include "game_share/fog_type.h"
26 #include "game_share/time_weather_season/weather_setup.h"
27 #include <vector>
29 namespace NLGEORGES
31 class UFormElm;
35 class CPrecipitation;
38 /** Weather state client part.
39 * This includes pointer on precipitation fxs, that are not needed on server side
40 * \author Nicolas Vizerie
41 * \author Nevrax France
42 * \date 2002
44 class CWeatherStateClient
46 public:
47 // struct describing a fx and its intensity
48 struct CFXDesc
50 float Ratio;
51 CPrecipitation *Precipitation; // the precipitation object
53 // FX
54 std::vector<CFXDesc> FXs;
55 // create vector of fx by using precipitation in the map
56 void setup(const CWeatherState &ws, std::map<std::string, CPrecipitation> &precipitationMap);
57 /** Blend 2 weather state together
58 * Blend factor is clamped to [0, 1]
60 static void blend(CWeatherStateClient &dest, const CWeatherStateClient &s1, const CWeatherStateClient &s2, float blendFactor);
63 class CWeatherSetupClient : public CWeatherSetup
65 public:
66 CWeatherStateClient WeatherStateClient;
71 #endif