From 2b1e5927ca01dc55879962d3d95d7c90c68b2fd7 Mon Sep 17 00:00:00 2001 From: ehofman Date: Sun, 24 Apr 2005 11:45:34 +0000 Subject: [PATCH] This one time I did a commit using Linux. --- simgear/environment/visual_enviro.cxx~ | 81 -------------------------- simgear/environment/visual_enviro.hxx~ | 58 ------------------ 2 files changed, 139 deletions(-) delete mode 100644 simgear/environment/visual_enviro.cxx~ delete mode 100644 simgear/environment/visual_enviro.hxx~ diff --git a/simgear/environment/visual_enviro.cxx~ b/simgear/environment/visual_enviro.cxx~ deleted file mode 100644 index 7af67e09..00000000 --- a/simgear/environment/visual_enviro.cxx~ +++ /dev/null @@ -1,81 +0,0 @@ -// Visual environment helper class -// -// Written by Harald JOHNSEN, started April 2005. -// -// Copyright (C) 2005 Harald JOHNSEN - hjohnsen@evc.net -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of the -// License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA -// -// - -#include -#include -#include "visual_enviro.hxx" - -SGEnviro sgEnviro; - -SGEnviro::SGEnviro(void) { -} - -SGEnviro::~SGEnviro(void) { -} - -int SGEnviro::get_clouds_CacheSize(void) const { - return SGCloudField::get_CacheSize(); -} -float SGEnviro::get_clouds_visibility(void) const { - return SGCloudField::get_CloudVis(); -} -float SGEnviro::get_clouds_density(void) const { - return SGCloudField::get_density(); -} -bool SGEnviro::get_clouds_enable_state(void) const { - return SGCloudField::get_enable3dClouds(); -} - -void SGEnviro::set_clouds_CacheSize(int sizeKb) { - SGCloudField::set_CacheSize(sizeKb); -} -void SGEnviro::set_clouds_visibility(float distance) { - SGCloudField::set_CloudVis(distance); -} -void SGEnviro::set_clouds_density(float density) { - SGCloudField::set_density(density); -} -void SGEnviro::set_clouds_enable_state(bool enable) { - SGCloudField::set_enable3dClouds(enable); -} - -// rain/snow -float SGEnviro::get_precipitation_density(void) const { - return 0.0; -} -bool SGEnviro::get_precipitation_enable_state(void) const { - return false; -} - -void SGEnviro::set_precipitation_density(float density) { -} -void SGEnviro::set_precipitation_enable_state(bool enable) { -} - -// others -bool SGEnviro::get_lightning_enable_state(void) const { - return false; -} - -void SGEnviro::set_lightning_enable_state(bool enable) { -} - diff --git a/simgear/environment/visual_enviro.hxx~ b/simgear/environment/visual_enviro.hxx~ deleted file mode 100644 index 1af1dce9..00000000 --- a/simgear/environment/visual_enviro.hxx~ +++ /dev/null @@ -1,58 +0,0 @@ -// Visual environment helper class -// -// Written by Harald JOHNSEN, started April 2005. -// -// Copyright (C) 2005 Harald JOHNSEN - hjohnsen@evc.net -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of the -// License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA -// -// -#ifndef _VISUAL_ENVIRO_HXX -#define _VISUAL_ENVIRO_HXX - -class SGEnviro { - -public: - SGEnviro(); - ~SGEnviro(); - - // Clouds - // return the size of the memory pool used by texture impostors - int get_clouds_CacheSize(void) const; - float get_clouds_visibility(void) const; - float get_clouds_density(void) const; - bool get_clouds_enable_state(void) const; - - void set_clouds_CacheSize(int sizeKb); - void set_clouds_visibility(float distance); - void set_clouds_density(float density); - void set_clouds_enable_state(bool enable); - - // rain/snow - float get_precipitation_density(void) const; - bool get_precipitation_enable_state(void) const; - - void set_precipitation_density(float density); - void set_precipitation_enable_state(bool enable); - - // others - bool get_lightning_enable_state(void) const; - void set_lightning_enable_state(bool enable); -}; - -extern SGEnviro sgEnviro; - -#endif // _VISUAL_ENVIRO_HXX - -- 2.39.5