5 #include "LoadingScreenConfig.h"
7 #include "VectorMath.h"
22 static LoadingScreen* Create(std::string splashScreenImageFilename,
32 void SetProgress(
float progress) { m_progress = Math::Clamp01(progress); }
33 void Update(
float dt);
35 void NotifyScreenDimensionsChanged(
float screenWidth,
float screenHeight);
37 bool IsVisible()
const {
return m_state != Hidden; }
38 bool IsDismissed()
const {
return m_state != Displayed; }
51 const v4& backgroundColor,
53 const v4& loadingBarColor,
54 const v4& loadingBarBackgroundColor,
55 const v2& loadingBarOffset,
56 float fadeOutDurationSeconds,
57 bool dismissAfterTimeout,
58 float timeoutSeconds);
60 void DestroyResources();
62 void RecreateRenderables(
float screenWidth,
float screenHeight);
76 enum LoadingScreenState
83 LoadingScreenState m_state;
84 const v4 m_backgroundColor;
85 const v4 m_loadingBarColor;
86 const v4 m_loadingBarBackgroundColor;
87 const v2 m_loadingBarOffset;
93 const float m_fadeDuration;
94 const float m_timeoutSeconds;
96 const bool m_hasProgressBar;
97 const bool m_dismissAfterTimeout;