C# 클래스 Protogame.Default2DRenderUtilities

An implementation of I2DRenderUtilities.
상속: I2DRenderUtilities
파일 보기 프로젝트 열기: RedpointGames/Protogame

공개 메소드들

메소드 설명
Default2DRenderUtilities ( IStringSanitizer stringSanitizer ) : System
MeasureText ( IRenderContext context, string text, FontAsset font ) : Vector2
RenderCircle ( IRenderContext context, Vector2 center, int radius, Color color, bool filled = false ) : void
RenderLine ( IRenderContext context, Vector2 start, Vector2 end, Color color, float width = 1f ) : void
RenderRectangle ( IRenderContext context, Rectangle rectangle, Color color, bool filled = false ) : void
RenderText ( IRenderContext context, Vector2 position, string text, FontAsset font, HorizontalAlignment horizontalAlignment = HorizontalAlignment.Left, VerticalAlignment verticalAlignment = VerticalAlignment.Top, Color textColor = null, bool renderShadow = true, Color shadowColor = null ) : void
RenderTexture ( IRenderContext context, Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 size = null, Color color = null, float rotation, Vector2 rotationAnchor = null, bool flipHorizontally = false, bool flipVertically = false, Rectangle sourceArea = null ) : void
RenderTexture ( IRenderContext context, Vector2 position, TextureAsset texture, Vector2 size = null, Color color = null, float rotation, Vector2 rotationAnchor = null, bool flipHorizontally = false, bool flipVertically = false, Rectangle sourceArea = null ) : void
ResumeSpriteBatch ( IRenderContext renderContext ) : void
SuspendSpriteBatch ( IRenderContext renderContext ) : void

메소드 상세

Default2DRenderUtilities() 공개 메소드

public Default2DRenderUtilities ( IStringSanitizer stringSanitizer ) : System
stringSanitizer IStringSanitizer
리턴 System

MeasureText() 공개 메소드

public MeasureText ( IRenderContext context, string text, FontAsset font ) : Vector2
context IRenderContext
text string
font FontAsset
리턴 Vector2

RenderCircle() 공개 메소드

public RenderCircle ( IRenderContext context, Vector2 center, int radius, Color color, bool filled = false ) : void
context IRenderContext
center Vector2
radius int
color Color
filled bool
리턴 void

RenderLine() 공개 메소드

public RenderLine ( IRenderContext context, Vector2 start, Vector2 end, Color color, float width = 1f ) : void
context IRenderContext
start Vector2
end Vector2
color Color
width float
리턴 void

RenderRectangle() 공개 메소드

public RenderRectangle ( IRenderContext context, Rectangle rectangle, Color color, bool filled = false ) : void
context IRenderContext
rectangle Microsoft.Xna.Framework.Rectangle
color Color
filled bool
리턴 void

RenderText() 공개 메소드

public RenderText ( IRenderContext context, Vector2 position, string text, FontAsset font, HorizontalAlignment horizontalAlignment = HorizontalAlignment.Left, VerticalAlignment verticalAlignment = VerticalAlignment.Top, Color textColor = null, bool renderShadow = true, Color shadowColor = null ) : void
context IRenderContext
position Vector2
text string
font FontAsset
horizontalAlignment HorizontalAlignment
verticalAlignment VerticalAlignment
textColor Color
renderShadow bool
shadowColor Color
리턴 void

RenderTexture() 공개 메소드

public RenderTexture ( IRenderContext context, Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 size = null, Color color = null, float rotation, Vector2 rotationAnchor = null, bool flipHorizontally = false, bool flipVertically = false, Rectangle sourceArea = null ) : void
context IRenderContext
position Vector2
texture Microsoft.Xna.Framework.Graphics.Texture2D
size Vector2
color Color
rotation float
rotationAnchor Vector2
flipHorizontally bool
flipVertically bool
sourceArea Microsoft.Xna.Framework.Rectangle
리턴 void

RenderTexture() 공개 메소드

public RenderTexture ( IRenderContext context, Vector2 position, TextureAsset texture, Vector2 size = null, Color color = null, float rotation, Vector2 rotationAnchor = null, bool flipHorizontally = false, bool flipVertically = false, Rectangle sourceArea = null ) : void
context IRenderContext
position Vector2
texture TextureAsset
size Vector2
color Color
rotation float
rotationAnchor Vector2
flipHorizontally bool
flipVertically bool
sourceArea Microsoft.Xna.Framework.Rectangle
리턴 void

ResumeSpriteBatch() 공개 메소드

public ResumeSpriteBatch ( IRenderContext renderContext ) : void
renderContext IRenderContext
리턴 void

SuspendSpriteBatch() 공개 메소드

public SuspendSpriteBatch ( IRenderContext renderContext ) : void
renderContext IRenderContext
리턴 void