C# Класс 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.
Показать файл Открыть проект

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

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

Описание методов

Contains() публичный статический Метод

public static Contains ( this rect, Vector2 value ) : bool
rect this
value Vector2
Результат bool

DrawIndexedPrimitives() публичный статический Метод

public static DrawIndexedPrimitives ( this self, PrimitiveType primitiveType, int baseVertex, int startIndex, int primitiveCount ) : void
self this
primitiveType PrimitiveType
baseVertex int
startIndex int
primitiveCount int
Результат void

GetRenderTargets() публичный статический Метод

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.
Результат void

ToPoint() публичный статический Метод

Gets a Point representation for this object.
public static ToPoint ( this self ) : Point
self this
Результат Point

ToVector2() публичный статический Метод

Gets a Vector2 representation for this object.
public static ToVector2 ( this self ) : Vector2
self this
Результат Vector2