C# Class MeshRenderer.Core.Zoom

Manages the current world to screen transformation
Afficher le fichier Open project: RegrowthStudios/VoxelRTS Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Initialize ( Rectangle screen ) : void
Initialize ( Rectangle screen, BoundingBox world ) : void
ScreenToWorld ( float x, float y ) : PointF
Update ( BoundingBox world ) : void
ViewportContains ( float x, float y ) : bool
WorldToScreen ( float x, float y ) : PointF
Zoom ( ) : System
Zoom ( bool invertY ) : System
ZoomReset ( ) : void
ZoomUpdate ( int amount, float focusX, float focusY ) : bool

Zoom in or out of the viewport.

Method Details

Initialize() public méthode

public Initialize ( Rectangle screen ) : void
screen System.Drawing.Rectangle
Résultat void

Initialize() public méthode

public Initialize ( Rectangle screen, BoundingBox world ) : void
screen System.Drawing.Rectangle
world BoundingBox
Résultat void

ScreenToWorld() public méthode

public ScreenToWorld ( float x, float y ) : PointF
x float
y float
Résultat System.Drawing.PointF

Update() public méthode

public Update ( BoundingBox world ) : void
world BoundingBox
Résultat void

ViewportContains() public méthode

public ViewportContains ( float x, float y ) : bool
x float
y float
Résultat bool

WorldToScreen() public méthode

public WorldToScreen ( float x, float y ) : PointF
x float
y float
Résultat System.Drawing.PointF

Zoom() public méthode

public Zoom ( ) : System
Résultat System

Zoom() public méthode

public Zoom ( bool invertY ) : System
invertY bool
Résultat System

ZoomReset() public méthode

public ZoomReset ( ) : void
Résultat void

ZoomUpdate() public méthode

Zoom in or out of the viewport.
public ZoomUpdate ( int amount, float focusX, float focusY ) : bool
amount int Zoom amount
focusX float Relative x point position
focusY float Relative y point position
Résultat bool