C# Class 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.
Mostra file Open project: MichaelAquilina/Some-2D-RPG Class Usage Examples

Public Methods

Method Description
GetWorldCoordinates ( Point position ) : Vector2

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

ToString ( ) : string

Method Details

GetWorldCoordinates() public method

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.
return Microsoft.Xna.Framework.Vector2

ToString() public method

public ToString ( ) : string
return string