C# Class Indiefreaks.Xna.Rendering.Camera.Camera3D

Abstract 3d camera
Override UpdateInput and UpdateViewMatrix to create your own custom camera
Inheritance: ICamera
Mostrar archivo Open project: Indiefreaks/igf

Public Methods

Method Description
BeginFrameRendering ( GameTime gameTime, FrameBuffers frameBuffers ) : void

Initializes the Camera and SunBurn SceneState to be used for rendering

EndFrameRendering ( ) : void

Finalizes Camera and SunBurn SceneState for this frame

Protected Methods

Method Description
Camera3D ( float aspectRatio, float fieldOfView, float nearPlaneDistance, float farPlaneDistance ) : Indiefreaks.Xna.Core

Creates a new Camera instance

UpdateInput ( InputManager input ) : void

Override this method to catch input events and act on the camera

UpdateViewMatrix ( GameTime gameTime ) : Matrix

Override this method to update the ViewMatrix property

Private Methods

Method Description
ICamera ( GameTime gameTime ) : void

Method Details

BeginFrameRendering() public method

Initializes the Camera and SunBurn SceneState to be used for rendering
public BeginFrameRendering ( GameTime gameTime, FrameBuffers frameBuffers ) : void
gameTime Microsoft.Xna.Framework.GameTime
frameBuffers FrameBuffers
return void

Camera3D() protected method

Creates a new Camera instance
protected Camera3D ( float aspectRatio, float fieldOfView, float nearPlaneDistance, float farPlaneDistance ) : Indiefreaks.Xna.Core
aspectRatio float The viewport aspect ratio
fieldOfView float The _instances of view expressed in radians
nearPlaneDistance float The nearest point in projected space of the camera
farPlaneDistance float The farest point in projected space of the camera
return Indiefreaks.Xna.Core

EndFrameRendering() public method

Finalizes Camera and SunBurn SceneState for this frame
public EndFrameRendering ( ) : void
return void

UpdateInput() protected abstract method

Override this method to catch input events and act on the camera
protected abstract UpdateInput ( InputManager input ) : void
input InputManager The current input instance
return void

UpdateViewMatrix() protected abstract method

Override this method to update the ViewMatrix property
protected abstract UpdateViewMatrix ( GameTime gameTime ) : Matrix
gameTime Microsoft.Xna.Framework.GameTime
return Microsoft.Xna.Framework.Matrix