Example #1
0
 public void StartMotion()
 {
     if (this.cameraMotion != null)
     {
         this.cameraType = previewControl.CameraType.MOTION;
         this.cameraMotion.Start();
     }
 }
Example #2
0
 public void SetMotionFrameIndex(int index)
 {
     if (this.cameraMotion != null)
     {
         this.cameraMotion.SetCurrentFrame(index);
         this.cameraMotion.Stop();
         this.cameraType = previewControl.CameraType.MOTION;
     }
 }
Example #3
0
 protected override void Initialize()
 {
     this.cameraType = previewControl.CameraType.FREE_ROAM;
     Arua_Camera_Editor.Common.ContentManager.SetGraphicsDevice(base.GraphicsDevice);
     this.XNAContent    = new Microsoft.Xna.Framework.Content.ContentManager(base.Services, "Content");
     this.zmsEffect     = Shaders.CreateObjectEffect(base.GraphicsDevice);
     this.terrainEffect = Shaders.CreateTerrainEffect(base.GraphicsDevice);
     this.motionEffect  = new BasicEffect(base.GraphicsDevice, null);
     this.zmsEffect.Parameters["World"].SetValue(Matrix.Identity);
     this.previewResize();
     this.camera       = new FreeRoamCamera(new Vector2((float)(base.Width / 2), (float)(base.Height / 2)));
     this.timer        = Stopwatch.StartNew();
     Application.Idle += delegate
     {
         base.Invalidate();
     };
     this.LoadContent();
 }
 public void FreeRoam()
 {
     this.cameraType = previewControl.CameraType.FREE_ROAM;
 }
 protected override void Initialize()
 {
     this.cameraType = previewControl.CameraType.FREE_ROAM;
     Arua_Camera_Editor.Common.ContentManager.SetGraphicsDevice(base.GraphicsDevice);
     this.XNAContent = new Microsoft.Xna.Framework.Content.ContentManager(base.Services, "Content");
     this.zmsEffect = Shaders.CreateObjectEffect(base.GraphicsDevice);
     this.terrainEffect = Shaders.CreateTerrainEffect(base.GraphicsDevice);
     this.motionEffect = new BasicEffect(base.GraphicsDevice, null);
     this.zmsEffect.Parameters["World"].SetValue(Matrix.Identity);
     this.previewResize();
     this.camera = new FreeRoamCamera(new Vector2((float)(base.Width / 2), (float)(base.Height / 2)));
     this.timer = Stopwatch.StartNew();
     Application.Idle += delegate
     {
         base.Invalidate();
     };
     this.LoadContent();
 }
 public void StartMotion()
 {
     if (this.cameraMotion != null)
     {
         this.cameraType = previewControl.CameraType.MOTION;
         this.cameraMotion.Start();
     }
 }
 public void SetMotionFrameIndex(int index)
 {
     if (this.cameraMotion != null)
     {
         this.cameraMotion.SetCurrentFrame(index);
         this.cameraMotion.Stop();
         this.cameraType = previewControl.CameraType.MOTION;
     }
 }
Example #8
0
 public void FreeRoam()
 {
     this.cameraType = previewControl.CameraType.FREE_ROAM;
 }