logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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