All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
LoadingScreenConfig.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "VectorMath.h"
6 
7 namespace Eegeo
8 {
9  namespace Rendering
10  {
11  namespace LoadingScreenLayout
12  {
13  enum Values
14  {
15  FullScreen,
16  Centred,
17  CentredStretchToFit
18  };
19  }
20 
22  {
23  LoadingScreenLayout::Values layout;
24  v4 backgroundColor;
25  v4 loadingBarColor;
26  v4 loadingBarBackgroundColor;
27  v2 loadingBarOffset;
28  float screenWidth;
29  float screenHeight;
30  float screenOversampleScaling;
31  float fadeOutDurationSeconds;
32  float timeoutSeconds;
33  bool hasProgressBar;
34  bool dismissAfterTimeout;
35 
37  : layout(LoadingScreenLayout::FullScreen)
38  , backgroundColor(v4::One())
39  , loadingBarColor(v4::One())
40  , loadingBarBackgroundColor(v4::Zero())
41  , loadingBarOffset(0.5f, 0.1f)
42  , screenWidth(0.0f)
43  , screenHeight(0.0f)
44  , screenOversampleScaling(1.f)
45  , fadeOutDurationSeconds(0.0f)
46  , timeoutSeconds(0.0f)
47  , hasProgressBar(true)
48  , dismissAfterTimeout(false)
49  {
50  }
51  };
52  }
53 }