All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
MaterialNames.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include <string>
6 
7 namespace Eegeo
8 {
9  namespace Rendering
10  {
11  namespace MaterialNames
12  {
13  static const std::string Buildings = "buildings_01";
14  static const std::string CustomLandmark = "custom_landmark";
15  static const std::string CustomLandmarkPunchThrough = "custom_landmark_punchthrough";
16  static const std::string Roads = "roads_01";
17  static const std::string TreeTops = "trees_top_01";
18  static const std::string Trees = "trees_01";
19  static const std::string Rail = "rail_01";
20  static const std::string Tramlines = "tramlines_01";
21  static const std::string ShadowVolumeGeometry = "shadows";
22  static const std::string ShadowOverlay = "shadow_overlay";
23  static const std::string Text = "text";
24  static const std::string RasterTerrain = "raster_terrain";
25  static const std::string PlaceholderTerrain = "placeholder_terrain";
26  static const std::string PlaceholderTerrainNoData = "placeholder_terrain_no_data";
27  static const std::string WeatherEffects = "weather_effects_overlay";
28  static const std::string RoadVehicles = "road_vehicles";
29  static const std::string Trains = "trains";
30  static const std::string Trams = "trams";
31  static const std::string Planes = "planes";
32  static const std::string ProceduralLandmark = "procedural_landmark";
33 
34  enum LcmCode
35  {
36  LcmCode_Terrain0 = 0,
37  LcmCode_FirstTerrain = LcmCode_Terrain0,
38  LcmCode_Terrain1,
39  LcmCode_Terrain2,
40  LcmCode_Terrain3,
41  LcmCode_Terrain4,
42  LcmCode_Terrain5,
43  LcmCode_Terrain6,
44  LcmCode_Terrain7,
45  LcmCode_Terrain8,
46  LcmCode_Terrain9,
47  LcmCode_Terrain10,
48  LcmCode_Terrain11,
49  LcmCode_Terrain12,
50  LcmCode_Terrain13,
51  LcmCode_Terrain14,
52  LcmCode_Terrain15,
53  LcmCode_Terrain16,
54  LcmCode_Terrain17,
55  LcmCode_Terrain18,
56  LcmCode_LastTerrain = LcmCode_Terrain18,
57 
58  LcmCode_FirstWater = 253,
59  LcmCode_ShallowWater = LcmCode_FirstWater,
60  LcmCode_MidWater = 254,
61  LcmCode_DeepWater = 255,
62  LcmCode_LastWater = LcmCode_DeepWater,
63  LcmCode_MAX = LcmCode_DeepWater
64  };
65 
66  static const int NumOfLcmCodes = (LcmCode_LastTerrain - LcmCode_FirstTerrain + 1) + (LcmCode_LastWater - LcmCode_FirstWater + 1);
67 
68  static const LcmCode LcmCodes[NumOfLcmCodes] = {
69  LcmCode_Terrain0,
70  LcmCode_Terrain1,
71  LcmCode_Terrain2,
72  LcmCode_Terrain3,
73  LcmCode_Terrain4,
74  LcmCode_Terrain5,
75  LcmCode_Terrain6,
76  LcmCode_Terrain7,
77  LcmCode_Terrain8,
78  LcmCode_Terrain9,
79  LcmCode_Terrain10,
80  LcmCode_Terrain11,
81  LcmCode_Terrain12,
82  LcmCode_Terrain13,
83  LcmCode_Terrain14,
84  LcmCode_Terrain15,
85  LcmCode_Terrain16,
86  LcmCode_Terrain17,
87  LcmCode_Terrain18,
88  LcmCode_ShallowWater,
89  LcmCode_MidWater,
90  LcmCode_DeepWater
91  };
92 
93  bool IsValidLcmCode(int lcmCode);
94 
95  const std::string GetLcmMaterialName(int lcmCode);
96  const std::string GetLcmLodMaterialName(int lcmCode);
97 
98  struct StringConsts {
99  static const std::string DeepWater;
100  static const std::string MidWater;
101  static const std::string ShallowWater;
102  static const std::string DeepWaterLod;
103  static const std::string MidWaterLod;
104  static const std::string ShallowWaterLod;
105  };
106  }
107  }
108 }