All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
HeatmapShapeViewFactory.h
1 #pragma once
2 
3 #include "Types.h"
4 #include "HeatmapShapeArgs.h"
5 #include "Modules.h"
6 #include "Rendering.h"
7 #include "VectorMath.h"
8 
9 #include <vector>
10 
11 namespace Eegeo
12 {
13  namespace Shapes
14  {
15  namespace Heatmaps
16  {
18  {
19  public:
21  HeatmapShapeMaterial& heatmapShapeMaterial,
22  const Rendering::VertexLayouts::VertexLayout& vertexLayout,
23  Rendering::GlBufferPool& glBufferPool,
25  float floatEncodeScale
26  );
27 
29 
30  HeatmapShapeArgs::ShapeView* CreateView(const HeatmapShapeArgs::ShapeModel& heatmap);
31 
32  private:
33  HeatmapShapeMaterial& m_heatmapShapeMaterial;
34  const Rendering::VertexLayouts::VertexLayout& m_vertexLayout;
35  Rendering::GlBufferPool& m_glBufferPool;
37  const float m_floatEncodeScale;
38 
39  Rendering::Mesh* CreateMesh(
40  const dv3& meshOriginEcef,
41  const std::vector<v3>& meshPoints,
42  const std::vector<v2>& textureCoords,
43  const std::vector<u16>& meshTriListIndices
44  );
45  };
46  }
47  }
48 }