using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using Slipstream; using Azimuth; using Annulus; namespace Slipstream.Testbed { class Program { static void Main(string[] args) { // It takes ~3 seconds to start up the main window form. // It would be good to have a splash screen during these seconds // System.Windows.Forms.MessageBox.Show("Starting"); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Blacklight.Core.GraphicsAdapterManager.Singleton.ForceStartup(); if (Blacklight.Core.GraphicsAdapterManager.Singleton.Modules.Count == 0) { System.Windows.Forms.MessageBox.Show( "Could not locate any Blacklight graphics addapters (eg: XNA, Tao, or GDI). " + "Will now exit.", "Critical Error"); return; } Blacklight.Core.GraphicsAdapterManager.Singleton.SetCurrentModule( "Blacklight.SharpDX9.Module"); var mainWindow = new MainWindow(); var world = new FluidWorld(); mainWindow.world = world; var demo = new Demos.RotatingAndTranslatingSquare(); demo.Start(world); mainWindow.currentDemo = demo; mainWindow.StartGameThread(); Application.Run(mainWindow); } } }