Ejemplo n.º 1
0
 private void LoadIngameRenderer()
 {
     ingameRenderer               = new IngameRenderer(this.graphics.DeviceService, this.graphics.Pipeline);
     ingameRenderer.Scene         = this.world.Scene;
     ingameRenderer.UserInterface = this.userInterface;
     ingameRenderer.Load();
 }
Ejemplo n.º 2
0
        public void Load()
        {
            this.scene  = new FlyScene(new Point2(1000, 1000));
            this.camera = new Camera(graphics.ViewSizeService, graphics.Device);

            this.userInterface = new EditorUserInterface();
            this.userInterface.KeyboardInput += this.OnKeyboardInput;
            this.userInterface.MouseInput    += this.OnMouseInput;

            ingameRenderer               = new IngameRenderer(this.graphics.DeviceService, this.graphics.Pipeline);
            ingameRenderer.Scene         = this.scene;
            ingameRenderer.UserInterface = this.userInterface;
            ingameRenderer.Load();
        }