mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-08-01 00:08:05 -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.
13 lines
233 B
C#
13 lines
233 B
C#
using Sandbox.Rendering;
|
|
|
|
namespace Sandbox.UI;
|
|
|
|
public record struct OutlineDrawDescriptor( Rect PanelRect, Color Color, float Width )
|
|
{
|
|
public Vector4 BorderRadius;
|
|
public float Offset;
|
|
|
|
internal BlendMode OverrideBlendMode;
|
|
|
|
}
|