mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-04-20 14:28:17 -04:00
New UI rendering that groups multiple panels to be grouped into a single draw call when possible. New custom rendering API for custom panels using `Panel.Draw.XX` to emit drawing commands.
22 lines
403 B
C#
22 lines
403 B
C#
using Sandbox.Rendering;
|
|
|
|
namespace Sandbox.UI;
|
|
|
|
public record struct BackdropDrawDescriptor( Rect PanelRect )
|
|
{
|
|
public Vector4 BorderRadius;
|
|
public float Opacity;
|
|
|
|
public float Brightness;
|
|
public float Contrast;
|
|
public float Saturate;
|
|
public float Sepia;
|
|
public float Invert;
|
|
public float HueRotate;
|
|
public float BlurScale;
|
|
|
|
internal BlendMode OverrideBlendMode;
|
|
internal bool IsLayered;
|
|
|
|
}
|