OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
std::string mDiffuseMap
Definition: defs.hpp:19
Definition: defs.hpp:14
bool requiresShaders() const
Definition: defs.hpp:24
std::string mNormalMap
Definition: defs.hpp:20
bool mSpecular
Definition: defs.hpp:22
Definition: defs.hpp:17
Definition: defs.hpp:13
Direction
Definition: defs.hpp:9
bool mParallax
Definition: defs.hpp:21
Definition: defs.hpp:11
Definition: defs.hpp:12