C# Class Nez.MonoGameCompat

implements some methods available in MonoGame that do not exist in FNA/XNA to make transitioning a codebase from MG/XNA to FNA a little bit easier.
Afficher le fichier Open project: prime31/Nez

Méthodes publiques

Méthode Description
Contains ( this rect, Vector2 value ) : bool
DrawIndexedPrimitives ( this self, PrimitiveType primitiveType, int baseVertex, int startIndex, int primitiveCount ) : void
GetRenderTargets ( this self, Microsoft.Xna.Framework.Graphics.RenderTargetBinding outTargets ) : void

it is recommended to use GetRenderTargets() to avoid the extra Array.Copy when using FNA

ToPoint ( this self ) : Point

Gets a Point representation for this object.

ToVector2 ( this self ) : Vector2

Gets a Vector2 representation for this object.

Method Details

Contains() public static méthode

public static Contains ( this rect, Vector2 value ) : bool
rect this
value Vector2
Résultat bool

DrawIndexedPrimitives() public static méthode

public static DrawIndexedPrimitives ( this self, PrimitiveType primitiveType, int baseVertex, int startIndex, int primitiveCount ) : void
self this
primitiveType PrimitiveType
baseVertex int
startIndex int
primitiveCount int
Résultat void

GetRenderTargets() public static méthode

it is recommended to use GetRenderTargets() to avoid the extra Array.Copy when using FNA
public static GetRenderTargets ( this self, Microsoft.Xna.Framework.Graphics.RenderTargetBinding outTargets ) : void
self this Self.
outTargets Microsoft.Xna.Framework.Graphics.RenderTargetBinding Out targets.
Résultat void

ToPoint() public static méthode

Gets a Point representation for this object.
public static ToPoint ( this self ) : Point
self this
Résultat Point

ToVector2() public static méthode

Gets a Vector2 representation for this object.
public static ToVector2 ( this self ) : Vector2
self this
Résultat Vector2