sdlRenderSetClipRect function
Set the clip rectangle for rendering on the specified target.
\param renderer the rendering context for which clip rectangle should be set \param rect an SDL_Rect structure representing the clip area, relative to the viewport, or NULL to disable clipping \returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
\since This function is available since SDL 2.0.0.
\sa SDL_RenderGetClipRect \sa SDL_RenderIsClipEnabled
extern DECLSPEC int SDLCALL SDL_RenderSetClipRect(SDL_Renderer * renderer, const SDL_Rect * rect)
Implementation
int sdlRenderSetClipRect(Pointer<SdlRenderer> renderer, Pointer<SdlRect> rect) {
final sdlRenderSetClipRectLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<SdlRenderer> renderer, Pointer<SdlRect> rect),
int Function(Pointer<SdlRenderer> renderer,
Pointer<SdlRect> rect)>('SDL_RenderSetClipRect');
return sdlRenderSetClipRectLookupFunction(renderer, rect);
}