All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WorldMeshRenderable.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "MeshRenderable.h"
6 #include "LayerIds.h"
7 #include "Rendering.h"
8 #include "VectorMath.h"
9 
10 namespace Eegeo
11 {
12  namespace Rendering
13  {
14  namespace Renderables
15  {
17  {
18  public:
20  LayerIds::Values layerId,
21  Materials::IMaterial* material,
22  const VertexLayouts::VertexBinding& vertexBinding,
23  Rendering::Mesh* pMesh,
24  Eegeo::dv3 ecefPosition,
25  bool affectedByFlattening = true);
26 
27  virtual void UpdateMVP(const Rendering::RenderContext& renderContext, float environmentFlatteningScale);
28 
29  protected:
30  Eegeo::v3 m_cameraRelativeModelOrigin;
31  bool m_affectedByFlattening;
32  };
33  }
34  }
35 }