C# Class MrGravity.Camera

Afficher le fichier Open project: DizWARE/Mr-Gravity Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

Move() public méthode

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
Résultat void

get_transformation() public méthode

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