LetterboxEffect.ComputeFitRect(int, int) Method
Definition
Namespace: Brine2D.Rendering.SDL.PostProcessing.Effects
Computes the centered, aspect-preserving destination rect for the design resolution within the given swapchain dimensions.
C#
public (int X,int Y,int Width,int Height) ComputeFitRect(int swapchainWidth, int swapchainHeight);
Parameters
swapchainWidth System.Int32
swapchainHeight System.Int32