sdlUnionRect function
Calculate the union of two rectangles.
\param A an SDL_Rect structure representing the first rectangle
\param B an SDL_Rect structure representing the second rectangle
\param result an SDL_Rect structure filled in with the union of rectangles
A
and B
\since This function is available since SDL 2.0.0.
extern DECLSPEC void SDLCALL SDL_UnionRect(const SDL_Rect * A, const SDL_Rect * B, SDL_Rect * result)
Implementation
void sdlUnionRect(
Pointer<SdlRect> a, Pointer<SdlRect> b, Pointer<SdlRect> result) {
final sdlUnionRectLookupFunction = libSdl2.lookupFunction<
Void Function(
Pointer<SdlRect> a, Pointer<SdlRect> b, Pointer<SdlRect> result),
void Function(Pointer<SdlRect> a, Pointer<SdlRect> b,
Pointer<SdlRect> result)>('SDL_UnionRect');
return sdlUnionRectLookupFunction(a, b, result);
}