Ejemplo n.º 1
0
 public ARGraphDealer(ARXNAGame game)
     : base(game)
 {
     painter     = new ARPainter(game);
     modelDrawer = new ARModelDrawer(game);
     projection  = Matrix.CreatePerspectiveFieldOfView(MathHelper.ToRadians(60.0f), //待编辑
                                                       1.6f,
                                                       1.0f,
                                                       5000.0f);
     camera = new ARBaseCamera(new Vector3(0, 45, 35), Vector3.Zero, projection);
 }
Ejemplo n.º 2
0
 public ARModelDrawer(ARXNAGame game)
     : base(game)
 {
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 更改设置后需要重新修改!?
 /// </summary>
 /// <param name="device"></param>
 public override void Reload(ARXNAGame game)
 {
     this.aspectRatio = game.GraphicsDevice.Viewport.AspectRatio;
 }
Ejemplo n.º 4
0
 public ARGameAreaDealer(ARXNAGame game)
     : base(game)
 {
     Resize();
 }
Ejemplo n.º 5
0
 public ARPainter(ARXNAGame game)
     : base(game)
 {
     gameAreaDealer = new ARGameAreaDealer(game);
     currentFont    = game.Content.Load <SpriteFont>("defaultFont");
 }
Ejemplo n.º 6
0
 public ARSceneManager(ARGameBase game)
 {
     this.game = game;
 }