Ejemplo n.º 1
0
 public void Run(Scene scene, SceneOptions options)
 {
     var window = new GraphicsWindow(scene);
     var view = new ElementView(options);
     scene.Initialize(view);
     window.Content = view;
     window.ShowDialog();
 }
Ejemplo n.º 2
0
 public MainPage()
 {
     InitializeComponent();
     var sceneOptions = new SceneOptions("/Images/800x600", 50, 42);
     _scene = new Scene(sceneOptions);
     var view = new ElementView(sceneOptions);
     _scene.Initialize(view);
     LayoutRoot.Children.Add(view);
     CompositionTarget.Rendering += new System.EventHandler(CompositionTarget_Rendering);
 }
Ejemplo n.º 3
0
 public MainPage()
 {
     InitializeComponent();
     new Uri("pack://application,,,/Images/800x600/BackgroundTile.bmp");
     var sceneOptions = new SceneOptions("ms-resource://MyAssembly/Images/800x600", 50, 42);
     _scene = new Scene(sceneOptions);
     var view = new ElementView(sceneOptions);
     _scene.Initialize(view);
     LayoutRoot.Children.Add(view);
     CompositionTarget.Rendering += CompositionTarget_Rendering;
 }