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

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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode Description
ICamera ( GameTime gameTime ) : void

Method Details

BeginFrameRendering() public méthode

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
Résultat void

Camera3D() protected méthode

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
Résultat Indiefreaks.Xna.Core

EndFrameRendering() public méthode

Finalizes Camera and SunBurn SceneState for this frame
public EndFrameRendering ( ) : void
Résultat void

UpdateInput() protected abstract méthode

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

UpdateViewMatrix() protected abstract méthode

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