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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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