2014-02-16 17:48:35 +00:00
|
|
|
#ifndef COMPONENTS_TERRAIN_DEFS_HPP
|
|
|
|
#define COMPONENTS_TERRAIN_DEFS_HPP
|
|
|
|
|
2015-06-02 23:18:36 +00:00
|
|
|
#include <string>
|
|
|
|
|
2014-02-16 17:48:35 +00:00
|
|
|
namespace Terrain
|
|
|
|
{
|
|
|
|
|
2014-02-26 18:23:42 +00:00
|
|
|
enum Direction
|
|
|
|
{
|
|
|
|
North = 0,
|
|
|
|
East = 1,
|
|
|
|
South = 2,
|
|
|
|
West = 3
|
|
|
|
};
|
|
|
|
|
2014-02-18 15:44:37 +00:00
|
|
|
struct LayerInfo
|
|
|
|
{
|
|
|
|
std::string mDiffuseMap;
|
|
|
|
std::string mNormalMap;
|
2016-03-22 20:00:31 +00:00
|
|
|
bool mParallax; // Height info in normal map alpha channel?
|
2014-02-18 15:44:37 +00:00
|
|
|
bool mSpecular; // Specular info in diffuse map alpha channel?
|
2016-02-20 18:54:47 +00:00
|
|
|
|
|
|
|
bool requiresShaders() const { return !mNormalMap.empty() || mSpecular; }
|
2014-02-18 15:44:37 +00:00
|
|
|
};
|
2014-03-05 20:45:43 +00:00
|
|
|
|
2014-02-16 17:48:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|