sdlRenderCopyF function
int
sdlRenderCopyF(
- Pointer<
SdlRenderer> renderer, - Pointer<
SdlTexture> texture, - Pointer<
SdlRect> srcrect, - Pointer<
SdlFRect> dstrect,
Copy a portion of the texture to the current rendering target at subpixel precision.
\param renderer The renderer which should copy parts of a texture. \param texture The source texture. \param srcrect A pointer to the source rectangle, or NULL for the entire texture. \param dstrect A pointer to the destination rectangle, or NULL for the entire rendering target. \return 0 on success, or -1 on error
\since This function is available since SDL 2.0.10.
extern DECLSPEC int SDLCALL SDL_RenderCopyF(SDL_Renderer * renderer, SDL_Texture * texture, const SDL_Rect * srcrect, const SDL_FRect * dstrect)
Implementation
int sdlRenderCopyF(Pointer<SdlRenderer> renderer, Pointer<SdlTexture> texture,
Pointer<SdlRect> srcrect, Pointer<SdlFRect> dstrect) {
final sdlRenderCopyFLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<SdlRenderer> renderer, Pointer<SdlTexture> texture,
Pointer<SdlRect> srcrect, Pointer<SdlFRect> dstrect),
int Function(
Pointer<SdlRenderer> renderer,
Pointer<SdlTexture> texture,
Pointer<SdlRect> srcrect,
Pointer<SdlFRect> dstrect)>('SDL_RenderCopyF');
return sdlRenderCopyFLookupFunction(renderer, texture, srcrect, dstrect);
}