sdlSoftStretchLinear function

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

Perform bilinear scaling between two surfaces of the same format, 32BPP.

\since This function is available since SDL 2.0.16.

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

Implementation

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