All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
CustomLandmarkDiffuseMaterial.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "PackedDiffuseMaterial.h"
6 #include "IdTypes.h"
7 #include "Rendering.h"
8 #include "Lighting.h"
9 #include "PackedDiffuseAlphaShader.h"
10 #include <string>
11 
12 namespace Eegeo
13 {
14  namespace Rendering
15  {
16  namespace Materials
17  {
19  {
20  public:
22  const TMaterialId materialId,
23  const std::string& name,
25  const Lighting::GlobalLighting& lighting,
26  Rendering::TextureMinifyType textureMinifyType,
27  bool useAlternativeAmbient,
28  bool textureRepeat);
29 
30  bool IsUsingAlternativeAmbient() const { return m_useAlternativeAmbient; }
31  void UseAlternativeAmbient(bool useAlternativeAmbient) { m_useAlternativeAmbient = useAlternativeAmbient; }
32 
33  const TMaterialId GetId() const { return m_id; }
34  const Shader& GetShader() const { return m_shader; }
35  const std::string& GetName() const { return m_name; }
36 
37  void SetState(Rendering::GLState& glState) const;
38 
39  void SetStatePerRenderable(const Rendering::RenderableBase* renderableBase, Rendering::GLState& glState) const;
40 
41  void SetLandmarkPostfix(const std::string& postfix);
42  private:
43  const TMaterialId m_id;
44  const std::string m_name;
46  const Lighting::GlobalLighting& m_lighting;
47  Rendering::TextureMinifyType m_textureMinifyType;
48  bool m_textureRepeat;
49  bool m_useAlternativeAmbient;
50 
51  std::string m_currentThemeStateLandmarkPostfix;
52  };
53  }
54  }
55 }