typedef struct SDL_Rect { int x, y; int w, h; } SDL_Rect; extern int SDL_GetRectUnion(const SDL_Rect *A, const SDL_Rect *B, SDL_Rect *result);