Function SDL_GetRectUnion
pub unsafe extern "C" fn SDL_GetRectUnion(
A: *const SDL_Rect,
B: *const SDL_Rect,
result: *mut SDL_Rect,
) -> bool
Available on crate feature
dep_sdl3
only.Expand description
Calculate the union of two rectangles.
§Parameters
A
: anSDL_Rect
structure representing the first rectangle.B
: anSDL_Rect
structure representing the second rectangle.result
: anSDL_Rect
structure filled in with the union of rectanglesA
andB
.
§Return value
Returns true on success or false on failure; call SDL_GetError()
for more
information.
§Availability
This function is available since SDL 3.2.0.