Exemplo n.º 1
0
 private void RemoveAlternativeView()
 {
     this.AlternativeDXElementContainer.Children.Clear();
     _alternativeDXElement   = null;
     _alternativeHangarScene = null;
     this.OnAlternativeHangarSceneChanged();
 }
Exemplo n.º 2
0
 private void InitializeAlternativeView()
 {
     _alternativeDXElement            = new DXElement();
     _alternativeHangarScene          = new HangarScene();
     _alternativeHangarScene.Renderer = new D3D9();
     _alternativeDXElement.Renderer   = _alternativeHangarScene;
     _alternativeDXElement.Visibility = Visibility.Hidden;
     this.InitializeHangarScene(_alternativeHangarScene);
     this.AlternativeDXElementContainer.Children.Add(_alternativeDXElement);
     this.OnAlternativeHangarSceneChanged();
 }
Exemplo n.º 3
0
 private void InitializeHangarScene(HangarScene hangarScene)
 {
     hangarScene.ShowGun        = this.ShowGun;
     hangarScene.ShowTurret     = this.ShowTurret;
     hangarScene.ShowChassis    = this.ShowChassis;
     hangarScene.ShowHull       = this.ShowHull;
     hangarScene.ProjectionMode = this.ProjectionMode;
     hangarScene.Fov            = this.Fov;
     hangarScene.ShowCamouflage = this.ShowCamouflage;
     hangarScene.FileSource     = this.FileSource;
     hangarScene.ModelType      = this.ModelType;
     hangarScene.RotationCenter = this.RotationCenter;
 }