sdlLowerBlitScaled function

int sdlLowerBlitScaled(
  1. Pointer<SdlSurface> src,
  2. Pointer<SdlRect> srcrect,
  3. Pointer<SdlSurface> dst,
  4. Pointer<SdlRect> dstrect,
)

Perform low-level surface scaled blitting only.

This is a semi-private function and it performs low-level surface blitting, assuming the input rectangles have already been clipped.

\param src the SDL_Surface structure to be copied from \param srcrect the SDL_Rect structure representing the rectangle to be copied \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_BlitScaled

extern DECLSPEC int SDLCALL SDL_LowerBlitScaled (SDL_Surface * src, SDL_Rect * srcrect, SDL_Surface * dst, SDL_Rect * dstrect)

Implementation

int sdlLowerBlitScaled(Pointer<SdlSurface> src, Pointer<SdlRect> srcrect,
    Pointer<SdlSurface> dst, Pointer<SdlRect> dstrect) {
  final sdlLowerBlitScaledLookupFunction = 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_LowerBlitScaled');
  return sdlLowerBlitScaledLookupFunction(src, srcrect, dst, dstrect);
}