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.
ファイルを表示 Open project: prime31/Nez

Public Methods

Method 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 method

public static Contains ( this rect, Vector2 value ) : bool
rect this
value Vector2
return bool

DrawIndexedPrimitives() public static method

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

GetRenderTargets() public static method

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.
return void

ToPoint() public static method

Gets a Point representation for this object.
public static ToPoint ( this self ) : Point
self this
return Point

ToVector2() public static method

Gets a Vector2 representation for this object.
public static ToVector2 ( this self ) : Vector2
self this
return Vector2