sdlLowerBlit function
int
sdlLowerBlit(
- Pointer<
SdlSurface> src, - Pointer<
SdlRect> srcrect, - Pointer<
SdlSurface> dst, - Pointer<
SdlRect> dstrect,
Perform low-level surface blitting only.
This is a semi-private blit function and it performs low-level surface blitting, assuming the input rectangles have already been clipped.
Unless you know what you're doing, you should be using SDL_BlitSurface() instead.
\param src the SDL_Surface structure to be copied from \param srcrect the SDL_Rect structure representing the rectangle to be copied, or NULL to copy the entire surface \param dst the SDL_Surface structure that is the blit target \param dstrect the SDL_Rect structure representing the rectangle that is copied into \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_BlitSurface
extern DECLSPEC int SDLCALL SDL_LowerBlit (SDL_Surface * src, SDL_Rect * srcrect, SDL_Surface * dst, SDL_Rect * dstrect)
Implementation
int sdlLowerBlit(Pointer<SdlSurface> src, Pointer<SdlRect> srcrect,
Pointer<SdlSurface> dst, Pointer<SdlRect> dstrect) {
final sdlLowerBlitLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<SdlSurface> src, Pointer<SdlRect> srcrect,
Pointer<SdlSurface> dst, Pointer<SdlRect> dstrect),
int Function(Pointer<SdlSurface> src, Pointer<SdlRect> srcrect,
Pointer<SdlSurface> dst, Pointer<SdlRect> dstrect)>('SDL_LowerBlit');
return sdlLowerBlitLookupFunction(src, srcrect, dst, dstrect);
}