All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
LoadingScreenRenderablesFactory.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Rendering.h"
6 #include "LoadingScreenRenderables.h"
7 #include "LoadingScreenConfig.h"
8 
9 
10 namespace Eegeo
11 {
12  namespace Rendering
13  {
15  {
16  public:
20  Materials::ColorMaterial& backgroundMaterial,
22  Eegeo::Rendering::LoadingScreenLayout::Values layout,
23  float textureWidth,
24  float textureHeight,
25  float screenOversampleScale)
26  : m_glBufferPool(glBufferPool)
27  , m_vertexLayoutPool(vertexLayoutPool)
28  , m_vertexBindingPool(vertexBindingPool)
29  , m_backgroundMaterial(backgroundMaterial)
30  , m_imageMaterial(imageMaterial)
31  , m_layout(layout)
32  , m_textureWidth(textureWidth)
33  , m_textureHeight(textureHeight)
34  , m_screenOversampleScale(screenOversampleScale)
35  {
36  }
37 
38 
39  LoadingScreenRenderables* CreateRenderables(float screenWidth, float screenHeight);
40  private:
41  Eegeo::Rendering::GlBufferPool& m_glBufferPool;
44  Materials::ColorMaterial& m_backgroundMaterial;
46  const Eegeo::Rendering::LoadingScreenLayout::Values m_layout;
47  const float m_textureWidth;
48  const float m_textureHeight;
49  const float m_screenOversampleScale;
50  };
51  }
52 }