public SceneView(StorageFolderViewModel rootFolder)
        {
            InitializeComponent();

            SharedShadow.Receivers.Add(SwapChainPanel);

            EntityTreeView.Translation += new Vector3(0.0f, 0.0f, 32.0f);

            ((StandardUICommand)Resources["OpenCommand"]).KeyboardAccelerators.Clear();

            EditorGame game = new EditorGame(new XamlGameContext(SwapChainPanel), rootFolder.Model);

            //EditorGame game = new EditorGame(new GameContextWithGraphics(), rootFolder.Model);
            game.Run();

            ViewModel = new SceneViewModel(game);
        }
Ejemplo n.º 2
0
 public static void Main(string[] args)
 {
     using (var game = new EditorGame()) game.Run();
 }