Class GeometryHelper
  
  
  
    Inheritance
    
    GeometryHelper
   
  
  
  Assembly: Ritchie.Toolbox.dll
  
  
    public class GeometryHelper
   
  Constructors
  
  
  
  
  Declaration
  
    public GeometryHelper(GuiRenderer guiRenderer, Point origin, bool desaturate, LayoutRect? clipRect)
   
  Parameters
  
  Fields
  
  
  
  Declaration
  
    public readonly Vector2 RenderScale
   
  Field Value
  
  Properties
  
  
  
  
  Declaration
  
    public GraphicsDevice GraphicsDevice { get; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | GraphicsDevice |  | 
    
  
  
  
  
  
  Declaration
  
    public float Layer { get; }
   
  Property Value
  
  Methods
  
  AddQuad(LayoutRect, Color, Texture2D?)
  
  
  Declaration
  
    public void AddQuad(LayoutRect rectangle, Color color, Texture2D? texture = null)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | LayoutRect | rectangle |  | 
      
        | Color | color |  | 
      
        | Texture2D | texture |  | 
    
  
  
  AddQuadOutline(LayoutRect, float, Color, Texture2D?)
  
  
  Declaration
  
    public void AddQuadOutline(LayoutRect rectangle, float thickness, Color color, Texture2D? texture = null)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | LayoutRect | rectangle |  | 
      
        | float | thickness |  | 
      
        | Color | color |  | 
      
        | Texture2D | texture |  | 
    
  
  
  AddRoundedRectangle(LayoutRect, Rounding, Color, Texture2D?)
  
  
  Declaration
  
    public void AddRoundedRectangle(LayoutRect rectangle, Rounding rounding, Color color, Texture2D? texture = null)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | LayoutRect | rectangle |  | 
      
        | Rounding | rounding |  | 
      
        | Color | color |  | 
      
        | Texture2D | texture |  | 
    
  
  
  AddRoundedRectangleOutline(LayoutRect, float, Rounding, Color, Texture2D?)
  
  
  Declaration
  
    public void AddRoundedRectangleOutline(LayoutRect rectangle, float thickness, Rounding rounding, Color color, Texture2D? texture = null)
   
  Parameters
  
  
  
  
  
  Declaration
  
    public void ExportMesh(WidgetGeometry geometry)
   
  Parameters
  
  
  GetMeshBuilder(Texture2D?, SamplerState?)
  
  
  Declaration
  
    public GuiMeshBuilder GetMeshBuilder(Texture2D? texture, SamplerState? samplerState = null)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Texture2D | texture |  | 
      
        | SamplerState | samplerState |  | 
    
  
  Returns
  
  Extension Methods