All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
PolyChartViewFactory.h
1 // Copyright (c) 2015 eeGeo. All rights reserved.
2 
3 #pragma once
4 
5 #include "RenderingModule.h"
6 #include "VertexColoredShader.h"
7 #include "VertexColoredMaterial.h"
8 #include "Rendering.h"
9 #include "PolyChart.h"
10 
11 namespace Eegeo
12 {
13  namespace Data
14  {
15  namespace PolyChart
16  {
18  {
19  public:
20  static PolyChartViewFactory* Create(Eegeo::Modules::Core::RenderingModule& renderingModule);
21 
25  const Rendering::VertexLayouts::VertexLayout& vertexLayout,
26  Rendering::GlBufferPool& glBufferPool,
28 
30 
31  PolyChartView* CreateView(PolyChartModel& model);
32  void FreeView(PolyChartView* pView);
33 
34  private:
37  const Rendering::VertexLayouts::VertexLayout& m_vertexLayout;
38  Rendering::GlBufferPool& m_glBufferPool;
40 
41  Rendering::Mesh* CreateMesh(PolyChartModel& model);
42  };
43  }
44  }
45 }