C# 클래스 MoodSwingCoreComponents.MSCamera

파일 보기 프로젝트 열기: verngutz/MoodSwing 1 사용 예제들

공개 메소드들

메소드 설명
AdjustPitchAxis ( ) : void
BirdsEyeView ( ) : void
GetInstance ( ) : MSCamera
GetView ( ) : Matrix
Rotate ( Vector2 rotation ) : void

Rotates the camera.

Shift ( Vector2 dV, Vector2 dim ) : void

Shifts the camera position and camera target in a specific direction.

Zoom ( int direction ) : bool

Shifts the camera position closer to the camera target.

initialize ( Viewport viewport, Vector3 initialLookAt, float rotation ) : void

Initializes the position of the camera.

비공개 메소드들

메소드 설명
MSCamera ( ) : System

메소드 상세

AdjustPitchAxis() 공개 메소드

public AdjustPitchAxis ( ) : void
리턴 void

BirdsEyeView() 공개 메소드

public BirdsEyeView ( ) : void
리턴 void

GetInstance() 공개 정적인 메소드

public static GetInstance ( ) : MSCamera
리턴 MSCamera

GetView() 공개 메소드

public GetView ( ) : Matrix
리턴 Matrix

Rotate() 공개 메소드

Rotates the camera.
public Rotate ( Vector2 rotation ) : void
rotation Vector2 A Vector2D whose X coordinate represents the direction of the angle of the yaw rotation /// and whose Y coordinate represents the direction of the angle of the pitch rotation
리턴 void

Shift() 공개 메소드

Shifts the camera position and camera target in a specific direction.
public Shift ( Vector2 dV, Vector2 dim ) : void
dV Vector2 A Vector2D whose X coordinate represents the direction of the movements from left to right and /// whose Y coordinate represents the direction of the up and down movement.
dim Vector2 A Vector2D representing the dimension of the map. Used for clamping.
리턴 void

Zoom() 공개 메소드

Shifts the camera position closer to the camera target.
public Zoom ( int direction ) : bool
direction int 1 to zoom closer. -1 to zoom further.
리턴 bool

initialize() 공개 정적인 메소드

Initializes the position of the camera.
public static initialize ( Viewport viewport, Vector3 initialLookAt, float rotation ) : void
viewport Microsoft.Xna.Framework.Graphics.Viewport
initialLookAt Vector3
rotation float
리턴 void