C# 클래스 Indiefreaks.Xna.Rendering.Camera.Camera3D

Abstract 3d camera
Override UpdateInput and UpdateViewMatrix to create your own custom camera
상속: ICamera
파일 보기 프로젝트 열기: Indiefreaks/igf

공개 메소드들

메소드 설명
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