]> git.mxchange.org Git - simgear.git/blob - simgear/environment/visual_enviro.cxx
0fdeae26fbea2dede1f580295ac0aa395b8d5cb5
[simgear.git] / simgear / environment / visual_enviro.cxx
1 // Visual environment helper class
2 //
3 // Written by Harald JOHNSEN, started April 2005.
4 //
5 // Copyright (C) 2005  Harald JOHNSEN - hjohnsen@evc.net
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License as
9 // published by the Free Software Foundation; either version 2 of the
10 // License, or (at your option) any later version.
11 //
12 // This program is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 // General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
20 //
21 //
22
23 #include <simgear/scene/sky/cloudfield.hxx>
24 #include <simgear/scene/sky/newcloud.hxx>
25 #include "visual_enviro.hxx"
26
27 SGEnviro sgEnviro;
28
29 SGEnviro::SGEnviro(void) {
30 }
31
32 SGEnviro::~SGEnviro(void) {
33 }
34
35 int SGEnviro::get_clouds_CacheSize(void) const {
36         return SGCloudField::get_CacheSize();
37 }
38 float SGEnviro::get_clouds_visibility(void) const {
39         return SGCloudField::get_CloudVis();
40 }
41 float SGEnviro::get_clouds_density(void) const {
42         return SGCloudField::get_density();
43 }
44 bool SGEnviro::get_clouds_enable_state(void) const {
45         return SGCloudField::get_enable3dClouds();
46 }
47
48 void SGEnviro::set_clouds_CacheSize(int sizeKb) {
49         SGCloudField::set_CacheSize(sizeKb);
50 }
51 void SGEnviro::set_clouds_visibility(float distance) {
52         SGCloudField::set_CloudVis(distance);
53 }
54 void SGEnviro::set_clouds_density(float density) {
55         SGCloudField::set_density(density);
56 }
57 void SGEnviro::set_clouds_enable_state(bool enable) {
58         SGCloudField::set_enable3dClouds(enable);
59 }
60
61 // rain/snow
62 float SGEnviro::get_precipitation_density(void) const {
63         return 0.0;
64 }
65 bool SGEnviro::get_precipitation_enable_state(void) const {
66         return false;
67 }
68
69 void SGEnviro::set_precipitation_density(float density) {
70 }
71 void SGEnviro::set_precipitation_enable_state(bool enable) {
72 }
73
74 // others
75 bool SGEnviro::get_lightning_enable_state(void) const {
76         return false;
77 }
78
79 void SGEnviro::set_lightning_enable_state(bool enable) {
80 }
81