C# 클래스 GameEngine.Info.ViewPortInfo

Representation of the data currently found in the ViewPort being rendered by the TileEngine. This structure will be passed to any GameShaders that need to be applied to the world and will be returned by the DrawWorldViewPort method in order to allow external code to place and detect coordinates correctly.
파일 보기 프로젝트 열기: MichaelAquilina/Some-2D-RPG 1 사용 예제들

공개 메소드들

메소드 설명
GetWorldCoordinates ( Point position ) : Vector2

Returns the translated world coordinates of the specified position on the viewport in pixels.

ToString ( ) : string

메소드 상세

GetWorldCoordinates() 공개 메소드

Returns the translated world coordinates of the specified position on the viewport in pixels.
public GetWorldCoordinates ( Point position ) : Vector2
position Microsoft.Xna.Framework.Point Point value representing the pixel position on viewport.
리턴 Microsoft.Xna.Framework.Vector2

ToString() 공개 메소드

public ToString ( ) : string
리턴 string