C# Класс Indiefreaks.Xna.Rendering.Camera.Camera3D

Abstract 3d camera
Override UpdateInput and UpdateViewMatrix to create your own custom camera
Наследование: ICamera
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
ICamera ( GameTime gameTime ) : void

Описание методов

BeginFrameRendering() публичный Метод

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
Результат void

Camera3D() защищенный Метод

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
Результат Indiefreaks.Xna.Core

EndFrameRendering() публичный Метод

Finalizes Camera and SunBurn SceneState for this frame
public EndFrameRendering ( ) : void
Результат void

UpdateInput() защищенный абстрактный Метод

Override this method to catch input events and act on the camera
protected abstract UpdateInput ( InputManager input ) : void
input InputManager The current input instance
Результат void

UpdateViewMatrix() защищенный абстрактный Метод

Override this method to update the ViewMatrix property
protected abstract UpdateViewMatrix ( GameTime gameTime ) : Matrix
gameTime Microsoft.Xna.Framework.GameTime
Результат Microsoft.Xna.Framework.Matrix