X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fenvironment%2Fprecipitation.hxx;h=bcf568c63708c2a5cc6e3ed71c82bf1b2d4a5faa;hb=3346bfc9a8e01a81bddab503664e0399d57e4d5e;hp=37b497d561e57ad0c05a5d59e2af43f23811955a;hpb=c724e5fb201efac3dc9e0fb8bea662c7235c56bf;p=simgear.git diff --git a/simgear/environment/precipitation.hxx b/simgear/environment/precipitation.hxx index 37b497d5..bcf568c6 100644 --- a/simgear/environment/precipitation.hxx +++ b/simgear/environment/precipitation.hxx @@ -22,51 +22,40 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - * @par CVS - * $Id$ */ #ifndef _PRECIPITATION_HXX #define _PRECIPITATION_HXX -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include +#include +#include #include -class SGPrecipitation { +class SGPrecipitation : public osg::Referenced +{ private: - bool _freeze; + bool _freeze; - float _snow_intensity; - float _rain_intensity; + float _snow_intensity; + float _rain_intensity; + float _clip_distance; - int _wind_dir; - osg::Vec3 _wind_vec; + int _wind_dir; + osg::Vec3 _wind_vec; - osg::Group *group; - osg::ref_ptr precipitationEffect; + osg::ref_ptr _precipitationEffect; public: - SGPrecipitation(); - ~SGPrecipitation(); - osg::Group* build(void); - bool update(void); + SGPrecipitation(); + virtual ~SGPrecipitation() {} + osg::Group* build(void); + bool update(void); - void setWindProperty(double, double); - void setFreezing(bool); - void setRainIntensity(float); - void setSnowIntensity(float); + void setWindProperty(double, double); + void setFreezing(bool); + void setRainIntensity(float); + void setSnowIntensity(float); }; #endif