SDL_GetRectUnion

Calculate the union of two rectangles.

extern (C) nothrow @nogc extern
bool
SDL_GetRectUnion
(
const(SDL_Rect)* A
,
const(SDL_Rect)* B
,)

Parameters

A const(SDL_Rect)*

an SDL_Rect structure representing the first rectangle.

B const(SDL_Rect)*

an SDL_Rect structure representing the second rectangle.

result SDL_Rect*

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

Return Value

Type: bool

true on success or false on failure; call SDL_GetError() for more information.

Meta