public override void UseCameraSetup(CameraSetup setup)
 {
     cameraSetup = setup;
     offsetY     = cameraSetup.CameraPositionStartY;
     offsetZ     = cameraSetup.CameraPositionStartZ;
     stepY       = (cameraSetup.CameraPositionEndY - cameraSetup.CameraPositionStartY) / 100;
     stepZ       = (cameraSetup.CameraPositionEndZ - cameraSetup.CameraPositionStartZ) / 100;
 }
 public GameObjectViewport(int x, int y, int width, int height,
                           GameObject gameObject, CameraSetup cameraSetup, bool shadowEffectEnabled)
     : base(x, y, width, height, gameObject, shadowEffectEnabled)
 {
     _gameObject = gameObject;
     Projection  = Matrix.CreatePerspectiveFieldOfView(MathHelper.ToRadians(30), (float)width / height, 0.1f, 500f);
     UseCameraSetup(cameraSetup);
 }
 public virtual void UseCameraSetup(CameraSetup setup)
 {
 }
 public void SetViewports(IEnumerable <GameObject> gameObjects, CameraSetup cameraSetup)
 {
     Viewports = viewportFactory.CreateViewPorts(gameObjects, cameraSetup).ToList();
 }