All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
HeatmapShapeMaterial.h
1 #pragma once
2 
3 #include "HeatmapShapes.h"
4 #include "IMaterial.h"
5 #include "Types.h"
6 #include "Rendering.h"
7 #include "Lighting.h"
8 #include "VectorMathDecl.h"
9 #include "HeatmapShapeShader.h"
10 
11 #include <string>
12 
13 namespace Eegeo
14 {
15  namespace Shapes
16  {
17  namespace Heatmaps
18  {
20  {
21  public:
23  const Rendering::TMaterialId materialId,
24  const std::string& name,
25  HeatmapShapeShader& shader
26  );
27 
28  const Rendering::TMaterialId GetId() const { return m_id; }
29  const Rendering::Shader& GetShader() const { return m_shader; }
30  const std::string& GetName() const { return m_name; }
31 
32  void SetState(Rendering::GLState& glState) const;
33 
34  void SetStatePerRenderable(const Rendering::RenderableBase* renderableBase, Rendering::GLState& glState) const;
35  protected:
36  const Rendering::TMaterialId m_id;
37  const std::string m_name;
38  HeatmapShapeShader& m_shader;
39  };
40  }
41  }
42 }