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.
21 lines
430 B
C#
21 lines
430 B
C#
using Sandbox.Rendering;
|
|
|
|
namespace Sandbox.UI;
|
|
|
|
public record struct ShadowDrawDescriptor( Rect PanelRect, Color Color )
|
|
{
|
|
public Vector4 BorderRadius;
|
|
public Vector2 Offset;
|
|
public float Blur;
|
|
public float Spread;
|
|
public bool Inset;
|
|
|
|
internal BlendMode OverrideBlendMode;
|
|
|
|
// Scissor for inset/outset clipping
|
|
internal Vector4 ScissorRect;
|
|
internal Vector4 ScissorCornerRadius;
|
|
internal Matrix ScissorTransformMat;
|
|
|
|
}
|