public void ResourceLoadEnded()
{
LoadBar.Progress = LoadBar.Progress + loadInc;
mWindow.Update();
// allow OS events to process (if the platform requires it
if ( WindowEventMonitor.Instance.MessagePump != null )
{
WindowEventMonitor.Instance.MessagePump();
}
}