I'm working on a process to show a loading screen using Picture Box form from Visual C# when DarkGDK is loading all my resources to do this i will use a delegate mechanism.
I will put a video on my blog
when it's finished
Here the code to put in dgdkapplication.cs
// Declare the delegate (if using non-generic pattern).
public delegate void LoadingFinished();
public static LoadingFinished TestCb;
// ... you code..loading 3d object..init camera..
// before the main loop while (DarkGDK.Engine.LoopGDK)
// Call the Asyncronuous function if exist
if (TestCb != null)
I've previously add a new MainForm with a picture box
Here the code to put in the fmain.cs
private void fMain_Shown(object sender, EventArgs e)
// --- Display a Splash screen ---
// Put the asynchronous function
dgdkApplication.TestCb = new dgdkApplication.LoadingFinished(LoadingFinished);
// Close the splach screen display the form
// Close the splash screen
In my forst test it's seems that the loading is more fast...