sdlUpperBlit function

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

Perform a fast blit from the source surface to the destination surface.

SDL_UpperBlit() has been replaced by SDL_BlitSurface(), which is merely a macro for this function with a less confusing name.

\since This function is available since SDL 2.0.0.

\sa SDL_BlitSurface

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

Implementation

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