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: 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.

§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.