SO3Engine
include
SO3SceneGraph
SO3Terrain.h
Go to the documentation of this file.
1
/*
2
-----------------------------------------------------------------------------
3
This source file is part of OpenSpace3D
4
For the latest info, see http://www.openspace3d.com
5
6
Copyright (c) 2012 I-maginer
7
8
This program is free software; you can redistribute it and/or modify it under
9
the terms of the GNU Lesser General Public License as published by the Free Software
10
Foundation; either version 2 of the License, or (at your option) any later
11
version.
12
13
This program is distributed in the hope that it will be useful, but WITHOUT
14
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
16
17
You should have received a copy of the GNU Lesser General Public License along with
18
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
19
Place - Suite 330, Boston, MA 02111-1307, USA, or go to
20
http://www.gnu.org/copyleft/lesser.txt
21
22
-----------------------------------------------------------------------------
23
*/
24
32
#ifndef __SO3TERRAIN_H__
33
#define __SO3TERRAIN_H__
34
35
#include "
SCOLBasic/SO3Prerequisites.h
"
36
#include "
SCOLBasic/SO3DataScol.h
"
37
#include <OGRE/Terrain/OgreTerrain.h>
38
39
namespace
SO3
40
{
41
class
_SO3_Export
STerrain
:
public
SData
42
{
43
public
:
46
STerrain
(
SScene
* scene,
const
std::string& resName);
47
51
~STerrain
();
52
55
bool
DefineHeightMap(std::string heightmap, Ogre::Real worldSize = 10000.0f, Ogre::Real scale = 600.0f, Ogre::uint16 minBatchsize = 33, Ogre::uint16 maxBatchsize = 65);
56
59
SScene
* GetParentScene();
60
63
void
UpdateLight(Ogre::ColourValue ambColor, Ogre::ColourValue sunColor, Ogre::Vector3 sunDir);
64
65
protected
:
66
SScene
*
mScene
;
67
Ogre::Terrain *
mTerrain
;
68
Ogre::TerrainGlobalOptions *
mGlobals
;
69
std::string
mResourceGroup
;
70
private
:
74
STerrain
();
75
};
76
77
}
78
79
#endif
SO3DataScol.h
SO3Prerequisites.h
librairies include
SO3::SData
Definition
SO3DataScol.h:41
SO3::SScene
Definition
SO3Scene.h:125
SO3::STerrain
Definition
SO3Terrain.h:42
SO3::STerrain::mScene
SScene * mScene
Definition
SO3Terrain.h:66
SO3::STerrain::mTerrain
Ogre::Terrain * mTerrain
Definition
SO3Terrain.h:67
SO3::STerrain::mGlobals
Ogre::TerrainGlobalOptions * mGlobals
Definition
SO3Terrain.h:68
SO3::STerrain::mResourceGroup
std::string mResourceGroup
Definition
SO3Terrain.h:69
SO3
Definition
SO3DataScol.h:38
Generated by
1.9.8