All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
RouteViewMaterial.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Types.h"
6 #include "IMaterial.h"
7 #include "Rendering.h"
8 #include "Routes.h"
9 #include <string>
10 
11 namespace Eegeo
12 {
13  namespace Routes
14  {
15  namespace View
16  {
18  {
19  public:
20  RouteViewMaterial(const Rendering::TMaterialId materialId,
21  const std::string& name,
22  RouteViewShader& shader);
23 
24  const Rendering::TMaterialId GetId() const { return m_id; }
25  const Rendering::Shader& GetShader() const;
26  const std::string& GetName() const { return m_name; }
27 
28  void SetState(Rendering::GLState& glState) const;
29 
30  void SetStatePerRenderable(const Rendering::RenderableBase* renderableBase, Rendering::GLState& glState) const;
31 
32  private:
33  const Rendering::TMaterialId m_id;
34  const std::string m_name;
35  RouteViewShader& m_shader;
36  };
37 
38  }
39  }
40 }