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
GetVertexCount(Texture2D?)
Declaration
public int GetVertexCount(Texture2D? texture)
Parameters
Type |
Name |
Description |
Texture2D |
texture |
|
Returns
Declaration
public void Grab(RenderTarget2D destination, Rectangle sourceArea, Rectangle destinationArea)
Parameters
Type |
Name |
Description |
RenderTarget2D |
destination |
|
Rectangle |
sourceArea |
|
Rectangle |
destinationArea |
|
Declaration
Declaration
Declaration
public void RenderGuiMesh(GuiMesh mesh, IEffect? effectOverride = null, float opacity = 1, LayoutRect? clipRect = null)
Parameters
Declaration
Declaration
public void SetLayer(float newLayer)
Parameters
Type |
Name |
Description |
float |
newLayer |
|