2 * ***** BEGIN GPL LICENSE BLOCK *****
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
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 General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
19 * All rights reserved.
21 * The Original Code is: all of this file.
23 * Contributor(s): none yet.
25 * ***** END GPL LICENSE BLOCK *****
28 /** \file KX_WorldInfo.h
32 #ifndef __KX_WORLDINFO_H__
33 #define __KX_WORLDINFO_H__
35 #include "MT_Scalar.h"
37 #ifdef WITH_CXX_GUARDEDALLOC
38 #include "MEM_guardedalloc.h"
52 KX_MIST_INV_QUADRATIC,
56 virtual ~KX_WorldInfo();
58 virtual bool hasWorld() = 0;
59 virtual bool hasMist() = 0;
60 virtual float getBackColorRed() = 0;
61 virtual float getBackColorGreen() = 0;
62 virtual float getBackColorBlue() = 0;
63 virtual short getMistType() = 0;
64 virtual float getMistStart() = 0;
65 virtual float getMistDistance() = 0;
66 virtual float getMistIntensity() = 0;
67 virtual float getMistColorRed() = 0;
68 virtual float getMistColorGreen() = 0;
69 virtual float getMistColorBlue() = 0;
71 virtual float getAmbientColorRed() = 0;
72 virtual float getAmbientColorGreen() = 0;
73 virtual float getAmbientColorBlue() = 0;
75 virtual void setUseMist(bool enable) = 0;
76 virtual void setMistType(short) = 0;
77 virtual void setMistStart(float) = 0;
78 virtual void setMistDistance(float) = 0;
79 virtual void setMistIntensity(float) = 0;
80 virtual void setMistColor(float, float, float) = 0;
81 virtual void setBackColor(float, float, float) = 0;
82 virtual void setAmbientColor(float,float,float) = 0;
85 #ifdef WITH_CXX_GUARDEDALLOC
86 MEM_CXX_CLASS_ALLOC_FUNCS("GE:KX_WorldInfo")
90 #endif /* __KX_WORLDINFO_H__ */