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.
파일 보기 프로젝트 열기: prime31/Nez

공개 메소드들

메소드 설명
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