public static void Main() { DualityApp.Init( DualityApp.ExecutionEnvironment.Launcher, DualityApp.ExecutionContext.Game, new DefaultAssemblyLoader(), null); WindowOptions options = new WindowOptions { Size = new Point2(800, 600), }; using (INativeWindow launcherWindow = DualityApp.OpenWindow(options)) { // Run tests BitmapDebuggerVisualizer.TestShow(Pixmap.DualityIcon.Res); BitmapDebuggerVisualizer.TestShow(Pixmap.DualityIcon.Res.MainLayer); BitmapDebuggerVisualizer.TestShow(Texture.DualityIcon.Res); BitmapDebuggerVisualizer.TestShow(Font.GenericMonospace10.Res.Material.MainTexture.Res); } DualityApp.Terminate(); }
public static void Main() { DualityApp.Init(DualityApp.ExecutionEnvironment.Launcher, DualityApp.ExecutionContext.Game); using (DualityDebuggingTester launcherWindow = new DualityDebuggingTester( DualityApp.UserData.GfxWidth, DualityApp.UserData.GfxHeight, DualityApp.DefaultMode, DualityApp.AppData.AppName, GameWindowFlags.Default)) { // Initialize default content launcherWindow.MakeCurrent(); DualityApp.TargetResolution = new Vector2(launcherWindow.Width, launcherWindow.Height); DualityApp.TargetMode = launcherWindow.Context.GraphicsMode; ContentProvider.InitDefaultContent(); // Run tests BitmapDebuggerVisualizer.TestShow(Pixmap.DualityIcon.Res); BitmapDebuggerVisualizer.TestShow(Pixmap.DualityIcon.Res.MainLayer); BitmapDebuggerVisualizer.TestShow(Texture.DualityIcon.Res); BitmapDebuggerVisualizer.TestShow(Font.GenericMonospace10.Res.Material.MainTexture.Res); } DualityApp.Terminate(); }