C# Class RTS.OrbitingCamera

Exibir arquivo Open project: RegrowthStudios/VoxelRTS Class Usage Examples

Public Methods

Method Description
ControlCamera ( float dt, InputManager input, Viewport vp ) : void
GetViewRay ( Vector2 screenPos, int ww, int wh ) : Microsoft.Xna.Framework.Ray
OrbitingCamera ( Vector3 c, float d, float aspect = DEFAULT_ASPECT ) : System
UpdateProjection ( float aspect, float near = PROJ_NEAR, float far = PROJ_FAR ) : void
UpdateView ( ) : void

Method Details

ControlCamera() public method

public ControlCamera ( float dt, InputManager input, Viewport vp ) : void
dt float
input BlisterUI.Input.InputManager
vp Microsoft.Xna.Framework.Graphics.Viewport
return void

GetViewRay() public method

public GetViewRay ( Vector2 screenPos, int ww, int wh ) : Microsoft.Xna.Framework.Ray
screenPos Vector2
ww int
wh int
return Microsoft.Xna.Framework.Ray

OrbitingCamera() public method

public OrbitingCamera ( Vector3 c, float d, float aspect = DEFAULT_ASPECT ) : System
c Vector3
d float
aspect float
return System

UpdateProjection() public method

public UpdateProjection ( float aspect, float near = PROJ_NEAR, float far = PROJ_FAR ) : void
aspect float
near float
far float
return void

UpdateView() public method

public UpdateView ( ) : void
return void