mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
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:
parent
8390c4159f
commit
c2da67d473
11 changed files with 74 additions and 6 deletions
|
|
@ -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)
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue