- removed ANX.BaseDirectX and replaced it using shared source files - renamed ANX.Framework.Windows.DX10 to ANX.RenderSystem.Windows.DX10 - some refactoring in ANX.RenderSystem.Windows.DX10 - some refactoring in ANX.RenderSystem.Windows.DX11 - fixed some minor issues in DX10 stock shader generation - fixed sample projects There's still an issue with the AddIn-System: The WindowsGame sample does not work currently.
34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
using System;
|
|
using System.Windows.Forms;
|
|
using ANX.Framework.NonXNA;
|
|
|
|
namespace WindowsGame1
|
|
{
|
|
static class Program
|
|
{
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
static void Main(string[] args)
|
|
{
|
|
Application.EnableVisualStyles();
|
|
|
|
AddInSystemFactory.Instance.Initialize();
|
|
|
|
AddInSelector selector = new AddInSelector();
|
|
if (selector.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
|
{
|
|
AddInSystemFactory.Instance.SetPreferredSystem(AddInType.RenderSystem, selector.cbRenderSystem.Text);
|
|
AddInSystemFactory.Instance.SetPreferredSystem(AddInType.SoundSystem, selector.cbAudioSystem.Text);
|
|
AddInSystemFactory.Instance.SetPreferredSystem(AddInType.InputSystem, selector.cbInputSystem.Text);
|
|
|
|
using (Game1 game = new Game1())
|
|
{
|
|
game.Run();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|