C# Class Protogame.Null3DRenderUtilities

Inheritance: I3DRenderUtilities
Show file Open project: RedpointGames/Protogame

Public Methods

Method Description
MeasureText ( IRenderContext context, string text, FontAsset font ) : Vector2
RenderCircle ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Matrix matrix, Vector2 center, int radius, Color color, bool filled = false ) : void
RenderCube ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Matrix transform, Color color ) : void
RenderCube ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Matrix transform, TextureAsset texture, Vector2 topLeftUV, Vector2 bottomRightUV ) : void
RenderLine ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Vector3 start, Vector3 end, Color color ) : void
RenderLine ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Vector3 start, Vector3 end, TextureAsset texture, Vector2 startUV, Vector2 endUV ) : void
RenderPlane ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Matrix transform, Color color ) : void
RenderPlane ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Matrix transform, TextureAsset texture, Vector2 topLeftUV, Vector2 bottomRightUV ) : void
RenderRectangle ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Vector3 start, Vector3 end, Color color, bool filled = false ) : void
RenderText ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Matrix matrix, 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, IEffect effect, IEffectParameterSet effectParameterSet, Matrix matrix, TextureAsset texture, Color color = null, bool flipHorizontally = false, bool flipVertically = false, Rectangle sourceArea = null ) : void

Method Details

MeasureText() public method

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

RenderCircle() public method

public RenderCircle ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Matrix matrix, Vector2 center, int radius, Color color, bool filled = false ) : void
context IRenderContext
effect IEffect
effectParameterSet IEffectParameterSet
matrix Matrix
center Vector2
radius int
color Color
filled bool
return void

RenderCube() public method

public RenderCube ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Matrix transform, Color color ) : void
context IRenderContext
effect IEffect
effectParameterSet IEffectParameterSet
transform Matrix
color Color
return void

RenderCube() public method

public RenderCube ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Matrix transform, TextureAsset texture, Vector2 topLeftUV, Vector2 bottomRightUV ) : void
context IRenderContext
effect IEffect
effectParameterSet IEffectParameterSet
transform Matrix
texture TextureAsset
topLeftUV Vector2
bottomRightUV Vector2
return void

RenderLine() public method

public RenderLine ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Vector3 start, Vector3 end, Color color ) : void
context IRenderContext
effect IEffect
effectParameterSet IEffectParameterSet
start Vector3
end Vector3
color Color
return void

RenderLine() public method

public RenderLine ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Vector3 start, Vector3 end, TextureAsset texture, Vector2 startUV, Vector2 endUV ) : void
context IRenderContext
effect IEffect
effectParameterSet IEffectParameterSet
start Vector3
end Vector3
texture TextureAsset
startUV Vector2
endUV Vector2
return void

RenderPlane() public method

public RenderPlane ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Matrix transform, Color color ) : void
context IRenderContext
effect IEffect
effectParameterSet IEffectParameterSet
transform Matrix
color Color
return void

RenderPlane() public method

public RenderPlane ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Matrix transform, TextureAsset texture, Vector2 topLeftUV, Vector2 bottomRightUV ) : void
context IRenderContext
effect IEffect
effectParameterSet IEffectParameterSet
transform Matrix
texture TextureAsset
topLeftUV Vector2
bottomRightUV Vector2
return void

RenderRectangle() public method

public RenderRectangle ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Vector3 start, Vector3 end, Color color, bool filled = false ) : void
context IRenderContext
effect IEffect
effectParameterSet IEffectParameterSet
start Vector3
end Vector3
color Color
filled bool
return void

RenderText() public method

public RenderText ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Matrix matrix, string text, FontAsset font, HorizontalAlignment horizontalAlignment = HorizontalAlignment.Left, VerticalAlignment verticalAlignment = VerticalAlignment.Top, Color textColor = null, bool renderShadow = true, Color shadowColor = null ) : void
context IRenderContext
effect IEffect
effectParameterSet IEffectParameterSet
matrix Matrix
text string
font FontAsset
horizontalAlignment HorizontalAlignment
verticalAlignment VerticalAlignment
textColor Color
renderShadow bool
shadowColor Color
return void

RenderTexture() public method

public RenderTexture ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Matrix matrix, TextureAsset texture, Color color = null, bool flipHorizontally = false, bool flipVertically = false, Rectangle sourceArea = null ) : void
context IRenderContext
effect IEffect
effectParameterSet IEffectParameterSet
matrix Matrix
texture TextureAsset
color Color
flipHorizontally bool
flipVertically bool
sourceArea Microsoft.Xna.Framework.Rectangle
return void