C# Class VoidRadar.Tools.Camera

显示文件 Open project: andrewmunro/Void Class Usage Examples

Public Properties

Property Type Description
Position Vector2
Zoom float

Public Methods

Method Description
Camera ( ) : System
SetZoom ( float zoom ) : void
Update ( GameTime gameTime ) : void
WorldToScreen ( Vector2 worldPosition ) : Vector2

Method Details

Camera() public method

public Camera ( ) : System
return System

SetZoom() public method

public SetZoom ( float zoom ) : void
zoom float
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

WorldToScreen() public method

public WorldToScreen ( Vector2 worldPosition ) : Vector2
worldPosition Vector2
return Vector2

Property Details

Position public_oe property

public Vector2 Position
return Vector2

Zoom public_oe property

public float Zoom
return float