Method | Description | |
---|---|---|
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, |
||
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, |
||
RenderTexture ( IRenderContext context, Vector2 position, TextureAsset texture, Vector2 size = null, Color color = null, float rotation, Vector2 rotationAnchor = null, bool flipHorizontally = false, bool flipVertically = false, |
||
ResumeSpriteBatch ( IRenderContext renderContext ) : void | ||
SuspendSpriteBatch ( IRenderContext renderContext ) : void |
public Default2DRenderUtilities ( IStringSanitizer stringSanitizer ) : System | ||
stringSanitizer | IStringSanitizer | |
return | System |
public MeasureText ( IRenderContext context, string text, FontAsset font ) : Vector2 | ||
context | IRenderContext | |
text | string | |
font | FontAsset | |
return | Vector2 |
public RenderCircle ( IRenderContext context, Vector2 center, int radius, Color color, bool filled = false ) : void | ||
context | IRenderContext | |
center | Vector2 | |
radius | int | |
color | Color | |
filled | bool | |
return | void |
public RenderLine ( IRenderContext context, Vector2 start, Vector2 end, Color color, float width = 1f ) : void | ||
context | IRenderContext | |
start | Vector2 | |
end | Vector2 | |
color | Color | |
width | float | |
return | void |
public RenderRectangle ( IRenderContext context, |
||
context | IRenderContext | |
rectangle | ||
color | Color | |
filled | bool | |
return | void |
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 | |
return | void |
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, |
||
context | IRenderContext | |
position | Vector2 | |
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
size | Vector2 | |
color | Color | |
rotation | float | |
rotationAnchor | Vector2 | |
flipHorizontally | bool | |
flipVertically | bool | |
sourceArea | ||
return | void |
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, |
||
context | IRenderContext | |
position | Vector2 | |
texture | TextureAsset | |
size | Vector2 | |
color | Color | |
rotation | float | |
rotationAnchor | Vector2 | |
flipHorizontally | bool | |
flipVertically | bool | |
sourceArea | ||
return | void |
public ResumeSpriteBatch ( IRenderContext renderContext ) : void | ||
renderContext | IRenderContext | |
return | void |
public SuspendSpriteBatch ( IRenderContext renderContext ) : void | ||
renderContext | IRenderContext | |
return | void |