Skip to content

ScissorRectHelper Class

Definition

Namespace: Brine2D.Rendering

Shared scissor rectangle intersection logic used by both HeadlessRenderer and SDL3StateManager.

C#
internal static class ScissorRectHelper

Inheritance System.Object → ScissorRectHelper

Methods
Intersect\(Nullable<Rectangle>, Nullable<Rectangle>\) Computes the effective scissor rectangle when pushing a new rect onto an existing one. Returns the intersection of current and incoming, or a zero-area rectangle when the two do not overlap.