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.
Afficher le fichier Open project: MichaelAquilina/Some-2D-RPG Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat Microsoft.Xna.Framework.Vector2

ToString() public méthode

public ToString ( ) : string
Résultat string