C# Class RTS.FreeCamera

Afficher le fichier Open project: RegrowthStudios/VoxelRTS Class Usage Examples

Méthodes publiques

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

Method Details

ControlCamera() public méthode

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

FreeCamera() public méthode

public FreeCamera ( Vector3 c, float yaw, float pitch, float aspect = DEFAULT_ASPECT ) : System
c Vector3
yaw float
pitch float
aspect float
Résultat System

GetViewRay() public méthode

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

UpdateProjection() public méthode

public UpdateProjection ( float aspect, float near = PROJ_NEAR, float far = PROJ_FAR ) : void
aspect float
near float
far float
Résultat void

UpdateView() public méthode

public UpdateView ( ) : void
Résultat void