C# 클래스 MeshRenderer.Core.Zoom

Manages the current world to screen transformation
파일 보기 프로젝트 열기: RegrowthStudios/VoxelRTS 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
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.

메소드 상세

Initialize() 공개 메소드

public Initialize ( Rectangle screen ) : void
screen System.Drawing.Rectangle
리턴 void

Initialize() 공개 메소드

public Initialize ( Rectangle screen, BoundingBox world ) : void
screen System.Drawing.Rectangle
world BoundingBox
리턴 void

ScreenToWorld() 공개 메소드

public ScreenToWorld ( float x, float y ) : PointF
x float
y float
리턴 System.Drawing.PointF

Update() 공개 메소드

public Update ( BoundingBox world ) : void
world BoundingBox
리턴 void

ViewportContains() 공개 메소드

public ViewportContains ( float x, float y ) : bool
x float
y float
리턴 bool

WorldToScreen() 공개 메소드

public WorldToScreen ( float x, float y ) : PointF
x float
y float
리턴 System.Drawing.PointF

Zoom() 공개 메소드

public Zoom ( ) : System
리턴 System

Zoom() 공개 메소드

public Zoom ( bool invertY ) : System
invertY bool
리턴 System

ZoomReset() 공개 메소드

public ZoomReset ( ) : void
리턴 void

ZoomUpdate() 공개 메소드

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
리턴 bool