C# Class Protogame.Default3DRenderUtilities

The default implementation of I3DRenderUtilities.
Inheritance: I3DRenderUtilities
Mostra file Open project: RedpointGames/Protogame

Public Methods

Method Description
Default3DRenderUtilities ( I2DRenderUtilities renderUtilities, IRenderCache renderCache, IRenderBatcher renderBatcher ) : System
MeasureText ( IRenderContext context, string text, FontAsset font ) : Vector2
RenderCircle ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Matrix transform, 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, VerticalAlignment verticalAlignment, Color textColor, bool renderShadow, Color shadowColor ) : void
RenderTexture ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Matrix matrix, TextureAsset texture, Color color, bool flipHorizontally, bool flipVertically, Rectangle sourceArea ) : void

Private Methods

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

Method Details

Default3DRenderUtilities() public method

public Default3DRenderUtilities ( I2DRenderUtilities renderUtilities, IRenderCache renderCache, IRenderBatcher renderBatcher ) : System
renderUtilities I2DRenderUtilities
renderCache IRenderCache
renderBatcher IRenderBatcher
return System

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 transform, Vector2 center, int radius, Color color, bool filled = false ) : void
context IRenderContext
effect IEffect
effectParameterSet IEffectParameterSet
transform 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, VerticalAlignment verticalAlignment, Color textColor, bool renderShadow, Color shadowColor ) : 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, bool flipHorizontally, bool flipVertically, Rectangle sourceArea ) : void
context IRenderContext
effect IEffect
effectParameterSet IEffectParameterSet
matrix Matrix
texture TextureAsset
color Color
flipHorizontally bool
flipVertically bool
sourceArea Microsoft.Xna.Framework.Rectangle
return void