Class GuiRenderer
Assembly: Ritchie.Toolbox.dll
public sealed class GuiRenderer
Constructors
GuiRenderer(IGuiContext)
Declaration
public GuiRenderer(IGuiContext context)
Parameters
Properties
Declaration
public GraphicsDevice GraphicsDevice { get; }
Property Value
Type |
Description |
GraphicsDevice |
|
Declaration
public float Layer { get; }
Property Value
Declaration
public Vector2 RenderScale { get; set; }
Property Value
Methods
Declaration
public void Grab(RenderTarget2D destination, Rectangle sourceArea, Rectangle destinationArea)
Parameters
Type |
Name |
Description |
RenderTarget2D |
destination |
|
Rectangle |
sourceArea |
|
Rectangle |
destinationArea |
|
Declaration
public void PopClipMask()
Declaration
PushClipMask(Texture2D)
Declaration
public void PushClipMask(Texture2D clipMask)
Parameters
Type |
Name |
Description |
Texture2D |
clipMask |
|
Declaration
Declaration
public void RenderClippingMesh(WidgetGeometry mesh, RenderTarget2D clipMask, Matrix transformMatrix, float opacity = 1)
Parameters
Type |
Name |
Description |
WidgetGeometry |
mesh |
|
RenderTarget2D |
clipMask |
|
Matrix |
transformMatrix |
|
float |
opacity |
|
Declaration
public void RenderGuiMesh(WidgetGeometry mesh, Matrix transformMatrix, IEffect? effectOverride = null, float opacity = 1, LayoutRect? clipRect = null)
Parameters
Declaration
Declaration
public void SetLayer(float newLayer)
Parameters
Type |
Name |
Description |
float |
newLayer |
|