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; } }
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; }