C# Class MoodSwingCoreComponents.MSCamera

Mostrar archivo Open project: verngutz/MoodSwing Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
MSCamera ( ) : System

Method Details

AdjustPitchAxis() public method

public AdjustPitchAxis ( ) : void
return void

BirdsEyeView() public method

public BirdsEyeView ( ) : void
return void

GetInstance() public static method

public static GetInstance ( ) : MSCamera
return MSCamera

GetView() public method

public GetView ( ) : Matrix
return Matrix

Rotate() public method

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
return void

Shift() public method

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.
return void

Zoom() public method

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

initialize() public static method

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
return void