Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SDL_GetRectUnion - Calculate the union of two rectangles.

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                                SDL_GetRectUnion(3)

Function Parameters

A      an SDL_Rect structure representing the first rectangle.

       B      an SDL_Rect structure representing the second rectangle.

       result an SDL_Rect structure filled in with the union of rectangles A and B.

Name

       SDL_GetRectUnion - Calculate the union of two rectangles.

Return Value

       for more information.

Synopsis

#include<SDL3/SDL_rect.h>boolSDL_GetRectUnion(constSDL_Rect*A,constSDL_Rect*B,SDL_Rect*result);

See Also