Fixes the splash screen so that it displays until the game has actually done initial setup and can display GUI elements. This prevents the ugly blank window just sitting there while the GUI loads.

This commit is contained in:
Areloch 2014-07-15 17:44:19 -05:00
parent 8390c4159f
commit c2da67d473
11 changed files with 74 additions and 6 deletions

View file

@ -89,6 +89,10 @@ protected:
/// Offscreen Render
bool mOffscreenRender;
/// This is set as part of the canvas being shown, and flags that the windows should render as normal from now on.
// Basically a flag that lets the window manager know that we've handled the splash screen, and to operate as normal.
bool mDisplayWindow;
/// Protected constructor so that the win
PlatformWindow()
{
@ -104,6 +108,7 @@ protected:
mSuppressReset = false;
mOffscreenRender = false;
mDisplayWindow = false;
}
public:
@ -180,6 +185,8 @@ public:
/// This is called to poll the window as to it's idle state.
virtual bool getOffscreenRender() { return mOffscreenRender; };
/// Set whether this window is should display as normal
virtual void setDisplayWindow(bool val ) { mDisplayWindow = val; };
/// Set Focused State (Foreground)
///