C# Class FarseerPhysics.Samples.ScreenSystem.Camera2D

Afficher le fichier Open project: tinco/Farseer-Physics Class Usage Examples

Méthodes publiques

Свойство Type Description
SimProjection Matrix
SimView Matrix
View Matrix

Méthodes publiques

Méthode Description
Camera2D ( GraphicsDevice graphics ) : System

The constructor for the Camera2D class.

ConvertScreenToWorld ( Vector2 location ) : Vector2
ConvertWorldToScreen ( Vector2 location ) : Vector2
Jump2Target ( ) : void
MoveCamera ( Vector2 amount ) : void
ResetCamera ( ) : void

Resets the camera to default values.

RotateCamera ( float amount ) : void
Update ( GameTime gameTime ) : void

Moves the camera forward one timestep.

Private Methods

Méthode Description
SetView ( ) : void

Method Details

Camera2D() public méthode

The constructor for the Camera2D class.
public Camera2D ( GraphicsDevice graphics ) : System
graphics GraphicsDevice
Résultat System

ConvertScreenToWorld() public méthode

public ConvertScreenToWorld ( Vector2 location ) : Vector2
location Vector2
Résultat Vector2

ConvertWorldToScreen() public méthode

public ConvertWorldToScreen ( Vector2 location ) : Vector2
location Vector2
Résultat Vector2

Jump2Target() public méthode

public Jump2Target ( ) : void
Résultat void

MoveCamera() public méthode

public MoveCamera ( Vector2 amount ) : void
amount Vector2
Résultat void

ResetCamera() public méthode

Resets the camera to default values.
public ResetCamera ( ) : void
Résultat void

RotateCamera() public méthode

public RotateCamera ( float amount ) : void
amount float
Résultat void

Update() public méthode

Moves the camera forward one timestep.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Property Details

SimProjection public_oe property

public Matrix SimProjection
Résultat Matrix

SimView public_oe property

public Matrix SimView
Résultat Matrix

View public_oe property

public Matrix View
Résultat Matrix