OpenMW
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
components
terrain
defs.hpp
Go to the documentation of this file.
1
#ifndef COMPONENTS_TERRAIN_DEFS_HPP
2
#define COMPONENTS_TERRAIN_DEFS_HPP
3
4
#include <string>
5
6
namespace
Terrain
7
{
8
9
enum
Direction
10
{
11
North
= 0,
12
East
= 1,
13
South
= 2,
14
West
= 3
15
};
16
17
struct
LayerInfo
18
{
19
std::string
mDiffuseMap
;
20
std::string
mNormalMap
;
21
bool
mParallax
;
// Height info in normal map alpha channel?
22
bool
mSpecular
;
// Specular info in diffuse map alpha channel?
23
24
bool
requiresShaders
()
const
{
return
!
mNormalMap
.empty() ||
mSpecular
; }
25
};
26
27
}
28
29
#endif
Terrain::LayerInfo::mDiffuseMap
std::string mDiffuseMap
Definition:
defs.hpp:19
Terrain::West
Definition:
defs.hpp:14
Terrain::LayerInfo::requiresShaders
bool requiresShaders() const
Definition:
defs.hpp:24
Terrain::LayerInfo::mNormalMap
std::string mNormalMap
Definition:
defs.hpp:20
Terrain::LayerInfo::mSpecular
bool mSpecular
Definition:
defs.hpp:22
Terrain::LayerInfo
Definition:
defs.hpp:17
Terrain::South
Definition:
defs.hpp:13
Terrain::Direction
Direction
Definition:
defs.hpp:9
Terrain::LayerInfo::mParallax
bool mParallax
Definition:
defs.hpp:21
Terrain::North
Definition:
defs.hpp:11
Terrain::East
Definition:
defs.hpp:12
Generated on Tue Jan 24 2017 02:05:52 for OpenMW by
1.8.6