All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ScreenSpaceRouteViewRenderable.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "RouteViewRenderable.h"
6 
7 namespace Eegeo
8 {
9  namespace Routes
10  {
11  namespace View
12  {
14  {
15  public:
16 
18  Rendering::LayerIds::Values layerId,
20  const Rendering::VertexLayouts::VertexBinding& vertexBinding,
21  Rendering::Mesh* pMesh,
22  const Eegeo::dv3& ecefPosition
23  ) : RouteViewRenderable(layerId, material, vertexBinding, pMesh, ecefPosition)
24  {
25 
26  }
27 
28  void SetModelView(const Eegeo::m44& modelView) { m_modelView = modelView; }
29  void SetModelViewInverseTranspose(const Eegeo::m44& modelViewInverseTranspose) { m_modelViewInverseTranspose = modelViewInverseTranspose; }
30  void SetProjection(const Eegeo::m44& projection) { m_projection = projection; }
31  void SetAspect(float aspect) { m_aspect = aspect; }
32 
33  const Eegeo::m44& GetModelView() const { return m_modelView; }
34  const Eegeo::m44& GetModelViewInverseTranspose() const { return m_modelViewInverseTranspose; }
35  const Eegeo::m44& GetProjection() const { return m_projection; }
36  float GetAspect() const { return m_aspect; }
37 
38  private:
39 
40  Eegeo::m44 m_modelView;
41  Eegeo::m44 m_modelViewInverseTranspose;
42  Eegeo::m44 m_projection;
43  float m_aspect;
44  };
45 
46  }
47  }
48 }