FirstPersonCamera

Warning

This documentation is for an implementation of a service. This class is not meant to be used directly; instead use the IFirstPersonCamera service via dependency injection to access this functionality.

Information documented here may not be up to date.

class FirstPersonCamera : System.Object, IFirstPersonCamera

The default implementation for T:Protogame.IFirstPersonCamera.

public void Apply(IRenderContext renderContext, Vector3 position, Vector3 lookAt, System.Nullable<Vector3> up, float fieldOfView, float nearPlaneDistance, float farPlaneDistance)
Parameters:
  • renderContext (Protogame.IRenderContext) –
  • position (Microsoft.Xna.Framework.Vector3) –
  • lookAt (Microsoft.Xna.Framework.Vector3) –
  • up (System.Nullable<Vector3>) –
  • fieldOfView (float) –
  • nearPlaneDistance (float) –
  • farPlaneDistance (float) –