Exemplo n.º 1
0
 public void CameraTally()
 {
     if (m_CurrentCamera == null)
     {
         m_CurrentCamera = m_CameraList[0];
     }
 }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
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);
        }
Exemplo n.º 4
0
 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;
        }
Exemplo n.º 7
0
 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()));
 }
Exemplo n.º 8
0
        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));
            }
        }
Exemplo n.º 9
0
 private void initializeCameraController()
 {
     cameraController = new CameraController((IView)pilotView, (IView)coPilotView,
         CameraFactory.GetMainCamera(), CameraFactory.GetManipulatorCamera(), CameraFactory.GetRearCamera());
 }
Exemplo n.º 10
0
 public void AddCcameraHandler(ICameraHandler camHandler)
 {
 }
Exemplo n.º 11
0
 public void AddCameraHandler(ICameraHandler cameraHandler)
 {
     cameraHandlers.Add(cameraHandler);
     cameraHandler.Camera = cameraScript.Camera;
 }
Exemplo n.º 12
0
 public void AddCcameraHandler(ICameraHandler camHandler)
 {
     m_CameraList.Add(camHandler);
 }