Jamie Slowgrove - OOT Assignment 1 - A Mission in Afghanistan
 All Classes Namespaces Files Functions Variables Macros
TerrainManager.h
Go to the documentation of this file.
1 //
2 // TerrainManager.h
3 // OOT Tutorial Ogre Framework Demo.
4 // This class is based on Ogre Basic Tutorial 3
5 // http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Basic+Tutorial+3&structure=Tutorials
6 // Created by Wen Tang on 10/02/15.
7 //
8 
9 #ifndef _TERRAIN_MANAGER_H_
10 #define _TERRAIN_MANAGER_H_
11 
12 #include "stdafx.h"
13 #include <iostream>
14 #include "OgreApplication.h"
15 #include <OgreAxisAlignedBox.h>
16 
17 #include "Terrain/OgreTerrain.h"
18 #include "Terrain/OgreTerrainGroup.h"
19 
21 {
22 private:
23 
24  shared_ptr<Ogre::TerrainGlobalOptions> terrainGlobals;
25  Ogre::TerrainGroup* terrainGroup;
27 
28 public:
31 
32  void Create( Ogre::SceneManager* sMgr);
33  void Loaded();
34 
35 private:
36 
37  void DefineTerrain(long x, long y);
38  void InitBlendMaps(Ogre::Terrain* terrain);
39  void ConfigureTerrainDefaults(Ogre::Light* light, const Ogre::ColourValue& ambientLight);
40  void GetTerrainHightMap(bool flipX, bool flipY, Ogre::Image& hMap);
41 
42  bool collisionDetection();
43 
44 };
45 
46 #endif
bool collisionDetection()
Definition: TerrainManager.cpp:188
Ogre::TerrainGroup * terrainGroup
Definition: TerrainManager.h:25
void Create(Ogre::SceneManager *sMgr)
Definition: TerrainManager.cpp:24
void ConfigureTerrainDefaults(Ogre::Light *light, const Ogre::ColourValue &ambientLight)
Definition: TerrainManager.cpp:74
Definition: TerrainManager.h:20
void Loaded()
Definition: TerrainManager.cpp:165
void InitBlendMaps(Ogre::Terrain *terrain)
Definition: TerrainManager.cpp:132
shared_ptr< Ogre::TerrainGlobalOptions > terrainGlobals
Definition: TerrainManager.h:24
~TerrainManager()
Definition: TerrainManager.cpp:19
void DefineTerrain(long x, long y)
Definition: TerrainManager.cpp:106
TerrainManager()
Definition: TerrainManager.cpp:13
void GetTerrainHightMap(bool flipX, bool flipY, Ogre::Image &hMap)
Definition: TerrainManager.cpp:123
bool terrainImported
Definition: TerrainManager.h:26