Skip to content

SDL3RenderTargetManager Class

Definition

Namespace: Brine2D.Rendering

Manages render targets and post-processing effects.

C#
internal sealed class SDL3RenderTargetManager : System.IDisposable

Inheritance System.Object → SDL3RenderTargetManager

Implements System.IDisposable

Properties
UsesFixedDesignResolution True when a letterbox effect is registered — main/ping-pong render targets are created at the fixed design resolution rather than the live viewport size, and window resizes no longer recreate them.
Methods
CreatePostProcessingTargets\(int, int\) Creates \(or recreates\) the main/ping-pong post-processing render targets. When a letterbox effect is registered \([UsesFixedDesignResolution](UsesFixedDesignResolution.md 'Brine2D\.Rendering\.SDL3RenderTargetManager\.UsesFixedDesignResolution')\), the requested width/height are ignored in favor of the fixed design resolution, so game-world rendering is decoupled from window size entirely.
SetSwapchainDimensions\(int, int\) Propagates the live swapchain \(window\) size to any registered letterbox effect, so it can recompute its centered fit rect. Safe to call regardless of whether UsesFixedDesignResolution is true.