All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
UniqueTextureRenderableFactory.h
1 #pragma once
2 
3 #include "UniqueTextureRenderable.h"
4 
5 namespace Eegeo
6 {
7  namespace Rendering
8  {
9  namespace Renderables
10  {
12  {
13  public:
14 
15  virtual ~IUniqueTextureRenderableFactory() { }
16 
17  virtual UniqueTextureRenderable* Create(LayerIds::Values layerId,
18  Materials::IMaterial* material,
19  const VertexLayouts::VertexBinding& vertexBinding,
20  Rendering::Mesh* pMesh,
22  Eegeo::dv3 ecefPosition) = 0;
23  };
24 
26  {
27  public:
28 
29  virtual UniqueTextureRenderable* Create(LayerIds::Values layerId,
30  Materials::IMaterial* material,
31  const VertexLayouts::VertexBinding& vertexBinding,
32  Rendering::Mesh* pMesh,
34  Eegeo::dv3 ecefPosition)
35  {
36  return Eegeo_NEW(UniqueTextureRenderable)(layerId, material, vertexBinding, pMesh, pTexture, ecefPosition);
37  }
38  };
39  }
40  }
41 }
42