RendererExtensions Class

Extension methods for IRenderer to simplify common operations.

public static class RendererExtensions

Inheritance System.Object → RendererExtensions

Methods
PushIntersectedScissorRect(this IRenderer, Rectangle) Intersect the current scissor rect with a new rect (nested clipping).
SetScissorRect(this IRenderer, Vector2, Vector2) Set a scissor rectangle from position and size vectors.
WithScissorRect(this IRenderer, Nullable<Rectangle>, Action) Execute an action with a temporary scissor rect. The previous scissor rect is automatically restored after the action.