+++ /dev/null
-// Visual environment helper class\r
-//\r
-// Written by Harald JOHNSEN, started April 2005.\r
-//\r
-// Copyright (C) 2005 Harald JOHNSEN - hjohnsen@evc.net\r
-//\r
-// This program is free software; you can redistribute it and/or\r
-// modify it under the terms of the GNU General Public License as\r
-// published by the Free Software Foundation; either version 2 of the\r
-// License, or (at your option) any later version.\r
-//\r
-// This program is distributed in the hope that it will be useful, but\r
-// WITHOUT ANY WARRANTY; without even the implied warranty of\r
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r
-// General Public License for more details.\r
-//\r
-// You should have received a copy of the GNU General Public License\r
-// along with this program; if not, write to the Free Software\r
-// Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA\r
-//\r
-//\r
-\r
-#include <simgear/scene/sky/cloudfield.hxx>\r
-#include <simgear/scene/sky/newcloud.hxx>\r
-#include "visual_enviro.hxx"\r
-\r
-SGEnviro sgEnviro;\r
-\r
-SGEnviro::SGEnviro(void) {\r
-}\r
-\r
-SGEnviro::~SGEnviro(void) {\r
-}\r
-\r
-int SGEnviro::get_clouds_CacheSize(void) const {\r
- return SGCloudField::get_CacheSize();\r
-}\r
-float SGEnviro::get_clouds_visibility(void) const {\r
- return SGCloudField::get_CloudVis();\r
-}\r
-float SGEnviro::get_clouds_density(void) const {\r
- return SGCloudField::get_density();\r
-}\r
-bool SGEnviro::get_clouds_enable_state(void) const {\r
- return SGCloudField::get_enable3dClouds();\r
-}\r
-\r
-void SGEnviro::set_clouds_CacheSize(int sizeKb) {\r
- SGCloudField::set_CacheSize(sizeKb);\r
-}\r
-void SGEnviro::set_clouds_visibility(float distance) {\r
- SGCloudField::set_CloudVis(distance);\r
-}\r
-void SGEnviro::set_clouds_density(float density) {\r
- SGCloudField::set_density(density);\r
-}\r
-void SGEnviro::set_clouds_enable_state(bool enable) {\r
- SGCloudField::set_enable3dClouds(enable);\r
-}\r
-\r
-// rain/snow\r
-float SGEnviro::get_precipitation_density(void) const {\r
- return 0.0;\r
-}\r
-bool SGEnviro::get_precipitation_enable_state(void) const {\r
- return false;\r
-}\r
-\r
-void SGEnviro::set_precipitation_density(float density) {\r
-}\r
-void SGEnviro::set_precipitation_enable_state(bool enable) {\r
-}\r
-\r
-// others\r
-bool SGEnviro::get_lightning_enable_state(void) const {\r
- return false;\r
-}\r
-\r
-void SGEnviro::set_lightning_enable_state(bool enable) {\r
-}\r
-\r
+++ /dev/null
-// Visual environment helper class\r
-//\r
-// Written by Harald JOHNSEN, started April 2005.\r
-//\r
-// Copyright (C) 2005 Harald JOHNSEN - hjohnsen@evc.net\r
-//\r
-// This program is free software; you can redistribute it and/or\r
-// modify it under the terms of the GNU General Public License as\r
-// published by the Free Software Foundation; either version 2 of the\r
-// License, or (at your option) any later version.\r
-//\r
-// This program is distributed in the hope that it will be useful, but\r
-// WITHOUT ANY WARRANTY; without even the implied warranty of\r
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r
-// General Public License for more details.\r
-//\r
-// You should have received a copy of the GNU General Public License\r
-// along with this program; if not, write to the Free Software\r
-// Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA\r
-//\r
-//\r
-#ifndef _VISUAL_ENVIRO_HXX\r
-#define _VISUAL_ENVIRO_HXX\r
-\r
-class SGEnviro {\r
-\r
-public:\r
- SGEnviro();\r
- ~SGEnviro();\r
-\r
- // Clouds\r
- // return the size of the memory pool used by texture impostors\r
- int get_clouds_CacheSize(void) const;\r
- float get_clouds_visibility(void) const;\r
- float get_clouds_density(void) const;\r
- bool get_clouds_enable_state(void) const;\r
-\r
- void set_clouds_CacheSize(int sizeKb);\r
- void set_clouds_visibility(float distance);\r
- void set_clouds_density(float density);\r
- void set_clouds_enable_state(bool enable);\r
-\r
- // rain/snow\r
- float get_precipitation_density(void) const;\r
- bool get_precipitation_enable_state(void) const;\r
-\r
- void set_precipitation_density(float density);\r
- void set_precipitation_enable_state(bool enable);\r
-\r
- // others\r
- bool get_lightning_enable_state(void) const;\r
- void set_lightning_enable_state(bool enable);\r
-};\r
-\r
-extern SGEnviro sgEnviro;\r
-\r
-#endif // _VISUAL_ENVIRO_HXX
-