public void CameraTally() { if (m_CurrentCamera == null) { m_CurrentCamera = m_CameraList[0]; } }
public Main() { graphics = new GraphicsDeviceManager(this); graphics.SynchronizeWithVerticalRetrace = false; graphics.ApplyChanges(); resolution = Settings.Default.WindowResolution; graphics.PreferredBackBufferWidth = resolution.X; graphics.PreferredBackBufferHeight = resolution.Y; Content.RootDirectory = "Content"; camera = new FreeLookCamera(this); cameraHandler = new CameraHandler(this); fps = new FPS(this); hud = new HUD(this); Components.Add(camera); Components.Add(cameraHandler); Components.Add(fps); Components.Add(hud); Services.AddService(typeof(ICamera), camera); fakeViewFrustum = new BoundingFrustum(Matrix.Identity); }
public Main() { graphics = new GraphicsDeviceManager(this); graphics.SynchronizeWithVerticalRetrace = false; graphics.ApplyChanges(); resolution = Settings.Default.WindowResolution; graphics.PreferredBackBufferWidth = resolution.X; graphics.PreferredBackBufferHeight = resolution.Y; Content.RootDirectory = "Content"; camera = new FreeLookCamera(this); cameraHandler = new CameraHandler(this); fps = new FPS(this); hud = new HUD(this); Components.Add(camera); Components.Add(cameraHandler); Components.Add(fps); Components.Add(hud); Services.AddService(typeof(ICamera), camera); fakeViewFrustum = new BoundingFrustum(Matrix.Identity); }
public void CameraPanTiltUp() { if (m_CurrentCamera == null) { m_CurrentCamera = m_CameraList[0]; } m_CurrentCamera.PanTiltUp(); }
public CoPilotActionsController(IJoystickStateListener coPilotRightStickListener, ICameraHandler cameraHandler, ICoPilotViewHandler coPilotView) { this.coPilotRightStickListener = coPilotRightStickListener; this.cameraHandler = cameraHandler; this.coPilotView = coPilotView; this.coPilotRightStickListener.JoystickStateChanged += coPilotRightStick_StateChanged; }
public PilotActionsController(IJoystickStateListener pilotStickListener, ICameraHandler cameraHandler, IPilotViewHandler pilotView) { this.pilotStickListener = pilotStickListener; this.cameraHandler = cameraHandler; this.pilotView = pilotView; this.pilotStickListener.JoystickStateChanged += pilotStick_StateChanged; }
public NewMenuPage() { InitializeComponent(); menuToCreate = new MenuEntity(); menuToCreate.Dishes = new List <Dish>(); _cameraHandler = DependencyService.Get <ICameraHandler>(); _cameraHandler.AddPhotoTakenEventHandler(PhotoReceived); // Callback DishWrapperStack.Children.Add(NewDishStack(new Dish())); }
public EditMenuPage(MenuEntity menu) { InitializeComponent(); menuToUpdate = menu; _cameraHandler = DependencyService.Get <ICameraHandler>(); _cameraHandler.AddPhotoTakenEventHandler(PhotoReceived); // Callback var dishes = new List <StackLayout>(); foreach (var dish in menuToUpdate.Dishes) { DishWrapperStack.Children.Add(NewDishStack(dish)); } }
private void initializeCameraController() { cameraController = new CameraController((IView)pilotView, (IView)coPilotView, CameraFactory.GetMainCamera(), CameraFactory.GetManipulatorCamera(), CameraFactory.GetRearCamera()); }
public void AddCcameraHandler(ICameraHandler camHandler) { }
public void AddCameraHandler(ICameraHandler cameraHandler) { cameraHandlers.Add(cameraHandler); cameraHandler.Camera = cameraScript.Camera; }
public void AddCcameraHandler(ICameraHandler camHandler) { m_CameraList.Add(camHandler); }