C# Class MrGravity.Camera

Exibir arquivo Open project: DizWARE/Mr-Gravity Class Usage Examples

Public Methods

Method Description
Camera ( Viewport viewport ) : Microsoft.Xna.Framework

Constructs a camera object.

Move ( Microsoft.Xna.Framework.Vector3 amount ) : void

Moves the camera by the desired amount

get_transformation ( ) : Matrix

Gets the current transformation using the position and zoom.

Method Details

Camera() public method

Constructs a camera object.
public Camera ( Viewport viewport ) : Microsoft.Xna.Framework
viewport Microsoft.Xna.Framework.Graphics.Viewport Current viewport for the game
return Microsoft.Xna.Framework

Move() public method

Moves the camera by the desired amount
public Move ( Microsoft.Xna.Framework.Vector3 amount ) : void
amount Microsoft.Xna.Framework.Vector3 Vector3 representing the amount to move in each direction
return void

get_transformation() public method

Gets the current transformation using the position and zoom.
public get_transformation ( ) : Matrix
return Microsoft.Xna.Framework.Matrix