C# Класс Protogame.Default3DRenderUtilities

The default implementation of I3DRenderUtilities.
Наследование: I3DRenderUtilities
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Default3DRenderUtilities() публичный Метод

public Default3DRenderUtilities ( I2DRenderUtilities renderUtilities, IRenderCache renderCache, IRenderBatcher renderBatcher ) : System
renderUtilities I2DRenderUtilities
renderCache IRenderCache
renderBatcher IRenderBatcher
Результат System

MeasureText() публичный Метод

public MeasureText ( IRenderContext context, string text, FontAsset font ) : Vector2
context IRenderContext
text string
font FontAsset
Результат Vector2

RenderCircle() публичный Метод

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
Результат void

RenderCube() публичный Метод

public RenderCube ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Matrix transform, Color color ) : void
context IRenderContext
effect IEffect
effectParameterSet IEffectParameterSet
transform Matrix
color Color
Результат void

RenderCube() публичный Метод

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
Результат void

RenderLine() публичный Метод

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
Результат void

RenderLine() публичный Метод

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
Результат void

RenderPlane() публичный Метод

public RenderPlane ( IRenderContext context, IEffect effect, IEffectParameterSet effectParameterSet, Matrix transform, Color color ) : void
context IRenderContext
effect IEffect
effectParameterSet IEffectParameterSet
transform Matrix
color Color
Результат void

RenderPlane() публичный Метод

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
Результат void

RenderRectangle() публичный Метод

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
Результат void

RenderText() публичный Метод

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
Результат void

RenderTexture() публичный Метод

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
Результат void